OSDN Git Service

Implement "date/time grand unification".
authorThomas G. Lockhart <lockhart@fourpalms.org>
Wed, 16 Feb 2000 17:26:26 +0000 (17:26 +0000)
committerThomas G. Lockhart <lockhart@fourpalms.org>
Wed, 16 Feb 2000 17:26:26 +0000 (17:26 +0000)
commit41f1f5b76ad8e177a2b19116cbf41384f93f3851
tree2165e6c833bc96f32e2d2b45c1d40b71e9c82ab7
parentc97672b08325d722cf5807ffede9fd31ee070f72
Implement "date/time grand unification".
 Transform datetime and timespan into timestamp and interval.
 Deprecate datetime and timespan, though translate to new types in gram.y.
 Transform all datetime and timespan catalog entries into new types.
 Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
 Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
  routines for all date/time types.
 date.{h,c} now deals with date, time types.
 timestamp.{h,c} now deals with timestamp, interval types.
 nabstime.{h,c} now deals with abstime, reltime, tinterval types.
Make NUMERIC a known native type for purposes of type coersion. Not tested.
21 files changed:
src/backend/parser/gram.y
src/backend/parser/parse_coerce.c
src/backend/utils/adt/Makefile
src/backend/utils/adt/dt.c [deleted file]
src/backend/utils/adt/formatting.c
src/backend/utils/adt/nabstime.c
src/backend/utils/adt/timestamp.c
src/include/catalog/catversion.h
src/include/catalog/pg_aggregate.h
src/include/catalog/pg_opclass.h
src/include/catalog/pg_operator.h
src/include/catalog/pg_proc.h
src/include/catalog/pg_type.h
src/include/parser/parse_coerce.h
src/include/utils/builtins.h
src/include/utils/date.h [new file with mode: 0644]
src/include/utils/datetime.h
src/include/utils/dt.h [deleted file]
src/include/utils/formatting.h
src/include/utils/nabstime.h
src/include/utils/timestamp.h [new file with mode: 0644]