mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
d92b1cdbab
This reverts commit 9f984ba6d2
.
It was making the buildfarm unhappy, apparently setting client_min_messages
in a regression test produces different output if log_statement='all'.
Another issue is that I now suspect the bit sortsupport function was in
fact not correct to call byteacmp(). Revert to investigate both of those
issues.
67 lines
992 B
Plaintext
67 lines
992 B
Plaintext
-- oid check
|
|
SET enable_seqscan=on;
|
|
CREATE TEMPORARY TABLE oidtmp (oid oid);
|
|
INSERT INTO oidtmp SELECT g.i::oid FROM generate_series(1, 1000) g(i);
|
|
SELECT count(*) FROM oidtmp WHERE oid < 17;
|
|
count
|
|
-------
|
|
16
|
|
(1 row)
|
|
|
|
SELECT count(*) FROM oidtmp WHERE oid <= 17;
|
|
count
|
|
-------
|
|
17
|
|
(1 row)
|
|
|
|
SELECT count(*) FROM oidtmp WHERE oid = 17;
|
|
count
|
|
-------
|
|
1
|
|
(1 row)
|
|
|
|
SELECT count(*) FROM oidtmp WHERE oid >= 17;
|
|
count
|
|
-------
|
|
984
|
|
(1 row)
|
|
|
|
SELECT count(*) FROM oidtmp WHERE oid > 17;
|
|
count
|
|
-------
|
|
983
|
|
(1 row)
|
|
|
|
CREATE INDEX oididx ON oidtmp USING gist ( oid );
|
|
SET enable_seqscan=off;
|
|
SELECT count(*) FROM oidtmp WHERE oid < 17;
|
|
count
|
|
-------
|
|
16
|
|
(1 row)
|
|
|
|
SELECT count(*) FROM oidtmp WHERE oid <= 17;
|
|
count
|
|
-------
|
|
17
|
|
(1 row)
|
|
|
|
SELECT count(*) FROM oidtmp WHERE oid = 17;
|
|
count
|
|
-------
|
|
1
|
|
(1 row)
|
|
|
|
SELECT count(*) FROM oidtmp WHERE oid >= 17;
|
|
count
|
|
-------
|
|
984
|
|
(1 row)
|
|
|
|
SELECT count(*) FROM oidtmp WHERE oid > 17;
|
|
count
|
|
-------
|
|
983
|
|
(1 row)
|
|
|