mirror of
https://github.com/postgres/postgres.git
synced 2025-07-12 21:01:52 +03:00
config
contrib
adminpack
amcheck
auth_delay
auto_explain
bloom
btree_gin
btree_gist
data
expected
sql
bit.sql
bytea.sql
cash.sql
char.sql
cidr.sql
date.sql
enum.sql
float4.sql
float8.sql
inet.sql
init.sql
int2.sql
int4.sql
int8.sql
interval.sql
macaddr.sql
macaddr8.sql
not_equal.sql
numeric.sql
oid.sql
text.sql
time.sql
timestamp.sql
timestamptz.sql
timetz.sql
uuid.sql
varbit.sql
varchar.sql
.gitignore
Makefile
btree_bit.c
btree_bytea.c
btree_cash.c
btree_date.c
btree_enum.c
btree_float4.c
btree_float8.c
btree_gist--1.0--1.1.sql
btree_gist--1.1--1.2.sql
btree_gist--1.2--1.3.sql
btree_gist--1.2.sql
btree_gist--1.3--1.4.sql
btree_gist--1.4--1.5.sql
btree_gist--unpackaged--1.0.sql
btree_gist.c
btree_gist.control
btree_gist.h
btree_inet.c
btree_int2.c
btree_int4.c
btree_int8.c
btree_interval.c
btree_macaddr.c
btree_macaddr8.c
btree_numeric.c
btree_oid.c
btree_text.c
btree_time.c
btree_ts.c
btree_utils_num.c
btree_utils_num.h
btree_utils_var.c
btree_utils_var.h
btree_uuid.c
citext
cube
dblink
dict_int
dict_xsyn
earthdistance
file_fdw
fuzzystrmatch
hstore
hstore_plperl
hstore_plpython
intagg
intarray
isn
jsonb_plperl
jsonb_plpython
lo
ltree
ltree_plpython
oid2name
pageinspect
passwordcheck
pg_buffercache
pg_freespacemap
pg_prewarm
pg_standby
pg_stat_statements
pg_trgm
pg_visibility
pgcrypto
pgrowlocks
pgstattuple
postgres_fdw
seg
sepgsql
spi
sslinfo
start-scripts
tablefunc
tcn
test_decoding
tsm_system_rows
tsm_system_time
unaccent
uuid-ossp
vacuumlo
xml2
Makefile
README
contrib-global.mk
doc
src
.dir-locals.el
.gitattributes
.gitignore
COPYRIGHT
GNUmakefile.in
HISTORY
Makefile
README
README.git
aclocal.m4
configure
configure.in
Buildfarm member skink failed with symptoms suggesting that an auto-analyze had happened and changed the plan displayed for a test query. Although this is evidently of low probability, regression tests that sometimes fail are no fun, so add commands to force a bitmap scan to be chosen.
37 lines
951 B
SQL
37 lines
951 B
SQL
|
|
SET enable_seqscan to false;
|
|
|
|
-- test search for "not equals"
|
|
|
|
CREATE TABLE test_ne (
|
|
a TIMESTAMP,
|
|
b NUMERIC
|
|
);
|
|
CREATE INDEX test_ne_idx ON test_ne USING gist (a, b);
|
|
|
|
INSERT INTO test_ne SELECT '2009-01-01', 10.7 FROM generate_series(1,1000);
|
|
INSERT INTO test_ne VALUES('2007-02-03', -91.3);
|
|
INSERT INTO test_ne VALUES('2011-09-01', 43.7);
|
|
INSERT INTO test_ne SELECT '2009-01-01', 10.7 FROM generate_series(1,1000);
|
|
|
|
SET enable_indexscan to false;
|
|
|
|
EXPLAIN (COSTS OFF) SELECT * FROM test_ne WHERE a <> '2009-01-01' AND b <> 10.7;
|
|
|
|
SELECT * FROM test_ne WHERE a <> '2009-01-01' AND b <> 10.7;
|
|
|
|
RESET enable_indexscan;
|
|
|
|
-- test search for "not equals" using an exclusion constraint
|
|
|
|
CREATE TABLE zoo (
|
|
cage INTEGER,
|
|
animal TEXT,
|
|
EXCLUDE USING gist (cage WITH =, animal WITH <>)
|
|
);
|
|
|
|
INSERT INTO zoo VALUES(123, 'zebra');
|
|
INSERT INTO zoo VALUES(123, 'zebra');
|
|
INSERT INTO zoo VALUES(123, 'lion');
|
|
INSERT INTO zoo VALUES(124, 'lion');
|