]> granicus.if.org Git - postgresql/commit
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)
commit2d0583a166402cbed19ba2b85b6c0b9240cff563
tree07a7fd1030484b54fc027c9c66db87c545ab08ac
parent6b0706ac33ab5da815980c642a9cde9a4cd86b6b
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