]> granicus.if.org Git - postgresql/commit
Create crosstype comparison operators for date vs. timestamp and date
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 14 Feb 2004 20:16:18 +0000 (20:16 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 14 Feb 2004 20:16:18 +0000 (20:16 +0000)
commita9e08392dd6fc6d7d1122296bf5525fbbd61ad0d
tree7fa85628cd2a11bcfd209c31b9b4a89b01bff1b0
parent2e5fe483a326072415dd7e9100a25670d3edd03e
Create crosstype comparison operators for date vs. timestamp and date
vs. timestamptz.  This allows use of indexes for expressions like
  datecol >= date 'today' - interval '1 month'
which were formerly not indexable without casting the righthand side
down from timestamp to date.
src/backend/utils/adt/date.c
src/backend/utils/adt/timestamp.c
src/include/catalog/catversion.h
src/include/catalog/pg_amop.h
src/include/catalog/pg_amproc.h
src/include/catalog/pg_operator.h
src/include/catalog/pg_proc.h
src/include/utils/date.h
src/include/utils/timestamp.h