mirror of
https://github.com/postgres/postgres.git
synced 2025-07-23 03:21:12 +03:00
config
contrib
adminpack
amcheck
auth_delay
auto_explain
bloom
btree_gin
expected
sql
bit.sql
bool.sql
bpchar.sql
bytea.sql
char.sql
cidr.sql
date.sql
enum.sql
float4.sql
float8.sql
inet.sql
install_btree_gin.sql
int2.sql
int4.sql
int8.sql
interval.sql
macaddr.sql
macaddr8.sql
money.sql
name.sql
numeric.sql
oid.sql
text.sql
time.sql
timestamp.sql
timestamptz.sql
timetz.sql
uuid.sql
varbit.sql
varchar.sql
.gitignore
Makefile
btree_gin--1.0--1.1.sql
btree_gin--1.0.sql
btree_gin--1.1--1.2.sql
btree_gin--1.2--1.3.sql
btree_gin--unpackaged--1.0.sql
btree_gin.c
btree_gin.control
btree_gist
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
16 lines
432 B
SQL
16 lines
432 B
SQL
set enable_seqscan=off;
|
|
|
|
CREATE TABLE test_int2 (
|
|
i int2
|
|
);
|
|
|
|
INSERT INTO test_int2 VALUES (-2),(-1),(0),(1),(2),(3);
|
|
|
|
CREATE INDEX idx_int2 ON test_int2 USING gin (i);
|
|
|
|
SELECT * FROM test_int2 WHERE i<1::int2 ORDER BY i;
|
|
SELECT * FROM test_int2 WHERE i<=1::int2 ORDER BY i;
|
|
SELECT * FROM test_int2 WHERE i=1::int2 ORDER BY i;
|
|
SELECT * FROM test_int2 WHERE i>=1::int2 ORDER BY i;
|
|
SELECT * FROM test_int2 WHERE i>1::int2 ORDER BY i;
|