Change the timestamps recorded in transaction commit/abort xlog records
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/twophase.c | modified | +3 −3 |
| src/backend/access/transam/xact.c | modified | +6 −12 |
| src/backend/access/transam/xlog.c | modified | +22 −20 |
| src/backend/utils/adt/timestamp.c | modified | +28 −1 |
| src/include/access/xact.h | modified | +3 −3 |
| src/include/access/xlog_internal.h | modified | +2 −2 |
| src/include/utils/timestamp.h | modified | +3 −1 |