Get rid of a bunch of #ifdef HAVE_INT64_TIMESTAMP conditionals by inventing
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Mar 2008 01:31:43 +0000 (01:31 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 21 Mar 2008 01:31:43 +0000 (01:31 +0000)
commit77fc553b8bf3bf41207409793e6d2139a3db4498
tree6c94498d5407f59626427d570ebb968096a1909b
parent14c9284a3e9c7f1d9cf689a3ddb95b84f1199d52
Get rid of a bunch of #ifdef HAVE_INT64_TIMESTAMP conditionals by inventing
a new typedef TimeOffset to represent an intermediate time value.  It's
either int64 or double as appropriate, and in most usages will be measured
in microseconds or seconds the same as Timestamp.  We don't call it
Timestamp, though, since the value doesn't necessarily represent an absolute
time instant.

Warren Turkal
src/backend/utils/adt/date.c
src/backend/utils/adt/nabstime.c
src/backend/utils/adt/timestamp.c
src/include/utils/date.h
src/include/utils/timestamp.h