OSDN Git Service

Clean up the rather historically encumbered interface to now() and
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 29 Jun 2005 22:51:57 +0000 (22:51 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 29 Jun 2005 22:51:57 +0000 (22:51 +0000)
commitb5f7cff84f57a189ed5c9dd59efe8d2568649d0d
tree77b5a25a7c4a62145ba89a578018121b3246b82d
parentc33d575899593a46a5b9a76e4e0ef6f9d81e55dd
Clean up the rather historically encumbered interface to now() and
current time: provide a GetCurrentTimestamp() function that returns
current time in the form of a TimestampTz, instead of separate time_t
and microseconds fields.  This is what all the callers really want
anyway, and it eliminates low-level dependencies on AbsoluteTime,
which is a deprecated datatype that will have to disappear eventually.
19 files changed:
contrib/btree_gist/btree_ts.c
contrib/spi/timetravel.c
src/backend/access/transam/xact.c
src/backend/access/transam/xlog.c
src/backend/bootstrap/bootparse.y
src/backend/bootstrap/bootscanner.l
src/backend/libpq/crypt.c
src/backend/postmaster/pgstat.c
src/backend/postmaster/postmaster.c
src/backend/tcop/postgres.c
src/backend/utils/adt/datetime.c
src/backend/utils/adt/nabstime.c
src/backend/utils/adt/pgstatfuncs.c
src/backend/utils/adt/selfuncs.c
src/backend/utils/adt/timestamp.c
src/include/access/xact.h
src/include/pgstat.h
src/include/utils/nabstime.h
src/include/utils/timestamp.h