1 set enable_seqscan=off;
2 CREATE TABLE test_oid (
5 INSERT INTO test_oid VALUES (0),(1),(2),(3),(4),(5);
6 CREATE INDEX idx_oid ON test_oid USING gin (i);
7 SELECT * FROM test_oid WHERE i<3::oid ORDER BY i;
15 SELECT * FROM test_oid WHERE i<=3::oid ORDER BY i;
24 SELECT * FROM test_oid WHERE i=3::oid ORDER BY i;
30 SELECT * FROM test_oid WHERE i>=3::oid ORDER BY i;
38 SELECT * FROM test_oid WHERE i>3::oid ORDER BY i;