mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +03:00
config
contrib
adddepend
array
btree_gist
data
expected
sql
bit.sql
bytea.sql
cash.sql
char.sql
cidr.sql
date.sql
float4.sql
float8.sql
inet.sql
init.sql
int2.sql
int4.sql
int8.sql
interval.sql
macaddr.sql
numeric.sql
oid.sql
text.sql
time.sql
timestamp.sql
timestamptz.sql
timetz.sql
varbit.sql
varchar.sql
Makefile
README.btree_gist
btree_bit.c
btree_bytea.c
btree_cash.c
btree_date.c
btree_float4.c
btree_float8.c
btree_gist.c
btree_gist.h
btree_gist.sql.in
btree_inet.c
btree_int2.c
btree_int4.c
btree_int8.c
btree_interval.c
btree_macaddr.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
chkpass
cube
dbase
dblink
dbmirror
dbsize
earthdistance
findoidjoins
fulltextindex
fuzzystrmatch
intagg
intarray
ipc_check
isbn_issn
lo
ltree
mSQL-interface
mac
miscutil
mysql
noupdate
oid2name
oracle
pg_autovacuum
pg_dumplo
pg_logger
pg_trgm
pg_upgrade
pgbench
pgcrypto
pgstattuple
reindexdb
rserv
rtree_gist
seg
spi
start-scripts
string
tablefunc
tips
tools
tsearch
tsearch2
userlock
vacuumlo
xml
xml2
Makefile
README
contrib-global.mk
doc
src
COPYRIGHT
GNUmakefile.in
Makefile
README
README.CVS
aclocal.m4
configure
configure.in
32 lines
757 B
SQL
32 lines
757 B
SQL
-- float8 check
|
|
|
|
CREATE TABLE float8tmp (a float8);
|
|
|
|
\copy float8tmp from 'data/float8.data'
|
|
|
|
SET enable_seqscan=on;
|
|
|
|
SELECT count(*) FROM float8tmp WHERE a < -1890.0;
|
|
|
|
SELECT count(*) FROM float8tmp WHERE a <= -1890.0;
|
|
|
|
SELECT count(*) FROM float8tmp WHERE a = -1890.0;
|
|
|
|
SELECT count(*) FROM float8tmp WHERE a >= -1890.0;
|
|
|
|
SELECT count(*) FROM float8tmp WHERE a > -1890.0;
|
|
|
|
CREATE INDEX float8idx ON float8tmp USING gist ( a );
|
|
|
|
SET enable_seqscan=off;
|
|
|
|
SELECT count(*) FROM float8tmp WHERE a < -1890.0::float8;
|
|
|
|
SELECT count(*) FROM float8tmp WHERE a <= -1890.0::float8;
|
|
|
|
SELECT count(*) FROM float8tmp WHERE a = -1890.0::float8;
|
|
|
|
SELECT count(*) FROM float8tmp WHERE a >= -1890.0::float8;
|
|
|
|
SELECT count(*) FROM float8tmp WHERE a > -1890.0::float8;
|