]> granicus.if.org Git - postgresql/commit
Change the timestamps recorded in transaction commit/abort xlog records
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 30 Apr 2007 21:01:53 +0000 (21:01 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 30 Apr 2007 21:01:53 +0000 (21:01 +0000)
commitc4320619635800a6116a02eee08b232c5abea266
tree3db9b7562baf005c9ccf4976c293a4328dfa9509
parent641912b4d17fd214a5e5bae4e7bb9ddbc28b144b
Change the timestamps recorded in transaction commit/abort xlog records
from time_t to TimestampTz representation.  This provides full gettimeofday()
resolution of the timestamps, which might be useful when attempting to
do point-in-time recovery --- previously it was not possible to specify
the stop point with sub-second resolution.  But mostly this is to get
rid of TimestampTz-to-time_t conversion overhead during commit.  Per my
proposal of a day or two back.
src/backend/access/transam/twophase.c
src/backend/access/transam/xact.c
src/backend/access/transam/xlog.c
src/backend/utils/adt/timestamp.c
src/include/access/xact.h
src/include/access/xlog_internal.h
src/include/utils/timestamp.h