mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
config
contrib
adminpack
auto_explain
btree_gin
btree_gist
data
expected
bit.out
bytea.out
cash.out
char.out
char_1.out
cidr.out
date.out
float4.out
float8.out
inet.out
init.out
int2.out
int4.out
int8.out
interval.out
macaddr.out
numeric.out
oid.out
text.out
text_1.out
time.out
timestamp.out
timestamptz.out
timetz.out
varbit.out
varchar.out
varchar_1.out
sql
Makefile
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
uninstall_btree_gist.sql
chkpass
citext
cube
dblink
dict_int
dict_xsyn
earthdistance
fuzzystrmatch
hstore
intagg
intarray
isn
lo
ltree
oid2name
pageinspect
passwordcheck
pg_buffercache
pg_freespacemap
pg_standby
pg_stat_statements
pg_trgm
pgbench
pgcrypto
pgrowlocks
pgstattuple
seg
spi
sslinfo
start-scripts
tablefunc
test_parser
tsearch2
unaccent
uuid-ossp
vacuumlo
xml2
Makefile
README
contrib-global.mk
doc
src
COPYRIGHT
GNUmakefile.in
Makefile
README
README.CVS
aclocal.m4
configure
configure.in
67 lines
1.0 KiB
Plaintext
67 lines
1.0 KiB
Plaintext
-- time check
|
|
CREATE TABLE timetmp (a time);
|
|
\copy timetmp from 'data/time.data'
|
|
SET enable_seqscan=on;
|
|
SELECT count(*) FROM timetmp WHERE a < '10:57:11';
|
|
count
|
|
-------
|
|
251
|
|
(1 row)
|
|
|
|
SELECT count(*) FROM timetmp WHERE a <= '10:57:11';
|
|
count
|
|
-------
|
|
252
|
|
(1 row)
|
|
|
|
SELECT count(*) FROM timetmp WHERE a = '10:57:11';
|
|
count
|
|
-------
|
|
1
|
|
(1 row)
|
|
|
|
SELECT count(*) FROM timetmp WHERE a >= '10:57:11';
|
|
count
|
|
-------
|
|
293
|
|
(1 row)
|
|
|
|
SELECT count(*) FROM timetmp WHERE a > '10:57:11';
|
|
count
|
|
-------
|
|
292
|
|
(1 row)
|
|
|
|
CREATE INDEX timeidx ON timetmp USING gist ( a );
|
|
SET enable_seqscan=off;
|
|
SELECT count(*) FROM timetmp WHERE a < '10:57:11'::time;
|
|
count
|
|
-------
|
|
251
|
|
(1 row)
|
|
|
|
SELECT count(*) FROM timetmp WHERE a <= '10:57:11'::time;
|
|
count
|
|
-------
|
|
252
|
|
(1 row)
|
|
|
|
SELECT count(*) FROM timetmp WHERE a = '10:57:11'::time;
|
|
count
|
|
-------
|
|
1
|
|
(1 row)
|
|
|
|
SELECT count(*) FROM timetmp WHERE a >= '10:57:11'::time;
|
|
count
|
|
-------
|
|
293
|
|
(1 row)
|
|
|
|
SELECT count(*) FROM timetmp WHERE a > '10:57:11'::time;
|
|
count
|
|
-------
|
|
292
|
|
(1 row)
|
|
|