Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
ecbd8daa
Commit
ecbd8daa
authored
22 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Add ORDER BY for inet regression, pointed out by Rod Taylor.
parent
2160c917
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/regress/expected/inet.out
+7
-7
7 additions, 7 deletions
src/test/regress/expected/inet.out
src/test/regress/sql/inet.sql
+7
-7
7 additions, 7 deletions
src/test/regress/sql/inet.sql
with
14 additions
and
14 deletions
src/test/regress/expected/inet.out
+
7
−
7
View file @
ecbd8daa
...
...
@@ -168,7 +168,7 @@ SELECT '' AS ten, i, c,
(14 rows)
-- check the conversion to/from text and set_netmask
select
'' AS ten, set_masklen(inet(text(i)), 24) FROM INET_TBL;
SELECT
'' AS ten, set_masklen(inet(text(i)), 24) FROM INET_TBL;
ten | set_masklen
-----+------------------
| 192.168.1.226/24
...
...
@@ -188,9 +188,9 @@ select '' AS ten, set_masklen(inet(text(i)), 24) FROM INET_TBL;
(14 rows)
-- check that index works correctly
create index
inet_idx1
on
inet_tbl(i);
set
enable_seqscan
to
off;
select * from
inet_tbl
where
i<<'192.168.1.0/24'::cidr;
CREATE INDEX
inet_idx1
ON
inet_tbl(i);
SET
enable_seqscan
TO
off;
SELECT * FROM
inet_tbl
WHERE
i<<'192.168.1.0/24'::cidr
ORDER BY c,i
;
c | i
----------------+------------------
192.168.1.0/24 | 192.168.1.0/25
...
...
@@ -198,7 +198,7 @@ select * from inet_tbl where i<<'192.168.1.0/24'::cidr;
192.168.1.0/24 | 192.168.1.226
(3 rows)
select * from
inet_tbl
where
i<<='192.168.1.0/24'::cidr;
SELECT * FROM
inet_tbl
WHERE
i<<='192.168.1.0/24'::cidr
ORDER BY c,i
;
c | i
----------------+------------------
192.168.1.0/24 | 192.168.1.0/24
...
...
@@ -209,5 +209,5 @@ select * from inet_tbl where i<<='192.168.1.0/24'::cidr;
192.168.1.0/24 | 192.168.1.226
(6 rows)
set
enable_seqscan
to
on;
drop index
inet_idx1;
SET
enable_seqscan
TO
on;
DROP INDEX
inet_idx1;
This diff is collapsed.
Click to expand it.
src/test/regress/sql/inet.sql
+
7
−
7
View file @
ecbd8daa
...
...
@@ -52,12 +52,12 @@ SELECT '' AS ten, i, c,
FROM
INET_TBL
;
-- check the conversion to/from text and set_netmask
select
''
AS
ten
,
set_masklen
(
inet
(
text
(
i
)),
24
)
FROM
INET_TBL
;
SELECT
''
AS
ten
,
set_masklen
(
inet
(
text
(
i
)),
24
)
FROM
INET_TBL
;
-- check that index works correctly
create
index
inet_idx1
on
inet_tbl
(
i
);
set
enable_seqscan
to
off
;
select
*
from
inet_tbl
where
i
<<
'192.168.1.0/24'
::
cidr
;
select
*
from
inet_tbl
where
i
<<=
'192.168.1.0/24'
::
cidr
;
set
enable_seqscan
to
on
;
drop
index
inet_idx1
;
CREATE
INDEX
inet_idx1
ON
inet_tbl
(
i
);
SET
enable_seqscan
TO
off
;
SELECT
*
FROM
inet_tbl
WHERE
i
<<
'192.168.1.0/24'
::
cidr
ORDER
BY
c
,
i
;
SELECT
*
FROM
inet_tbl
WHERE
i
<<=
'192.168.1.0/24'
::
cidr
ORDER
BY
c
,
i
;
SET
enable_seqscan
TO
on
;
DROP
INDEX
inet_idx1
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment