mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Back out ORDER BY addition to Inet, for Tom.
This commit is contained in:
parent
de97072e3c
commit
4b874036c2
@ -190,7 +190,7 @@ 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 ORDER BY c,i;
|
||||
SELECT * FROM inet_tbl WHERE i<<'192.168.1.0/24'::cidr;
|
||||
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 ORDER BY c,i;
|
||||
192.168.1.0/24 | 192.168.1.226
|
||||
(3 rows)
|
||||
|
||||
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;
|
||||
c | i
|
||||
----------------+------------------
|
||||
192.168.1.0/24 | 192.168.1.0/24
|
||||
|
@ -56,8 +56,8 @@ 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 ORDER BY c,i;
|
||||
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;
|
||||
SELECT * FROM inet_tbl WHERE i<<='192.168.1.0/24'::cidr;
|
||||
SET enable_seqscan TO on;
|
||||
DROP INDEX inet_idx1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user