mirror of
https://github.com/postgres/postgres.git
synced 2025-07-21 16:02:15 +03:00
config
contrib
adminpack
amcheck
auth_delay
auto_explain
bloom
btree_gin
expected
bit.out
bool.out
bpchar.out
bytea.out
char.out
cidr.out
date.out
enum.out
float4.out
float8.out
inet.out
install_btree_gin.out
int2.out
int4.out
int8.out
interval.out
macaddr.out
macaddr8.out
money.out
name.out
numeric.out
oid.out
text.out
time.out
timestamp.out
timestamptz.out
timetz.out
uuid.out
varbit.out
varchar.out
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
45 lines
622 B
Plaintext
45 lines
622 B
Plaintext
set enable_seqscan=off;
|
|
CREATE TABLE test_numeric (
|
|
i numeric
|
|
);
|
|
INSERT INTO test_numeric VALUES (-2),(-1),(0),(1),(2),(3);
|
|
CREATE INDEX idx_numeric ON test_numeric USING gin (i);
|
|
SELECT * FROM test_numeric WHERE i<'1'::numeric ORDER BY i;
|
|
i
|
|
----
|
|
-2
|
|
-1
|
|
0
|
|
(3 rows)
|
|
|
|
SELECT * FROM test_numeric WHERE i<='1'::numeric ORDER BY i;
|
|
i
|
|
----
|
|
-2
|
|
-1
|
|
0
|
|
1
|
|
(4 rows)
|
|
|
|
SELECT * FROM test_numeric WHERE i='1'::numeric ORDER BY i;
|
|
i
|
|
---
|
|
1
|
|
(1 row)
|
|
|
|
SELECT * FROM test_numeric WHERE i>='1'::numeric ORDER BY i;
|
|
i
|
|
---
|
|
1
|
|
2
|
|
3
|
|
(3 rows)
|
|
|
|
SELECT * FROM test_numeric WHERE i>'1'::numeric ORDER BY i;
|
|
i
|
|
---
|
|
2
|
|
3
|
|
(2 rows)
|
|
|