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.
Showing
- src/backend/access/transam/twophase.c 3 additions, 3 deletionssrc/backend/access/transam/twophase.c
- src/backend/access/transam/xact.c 6 additions, 12 deletionssrc/backend/access/transam/xact.c
- src/backend/access/transam/xlog.c 22 additions, 20 deletionssrc/backend/access/transam/xlog.c
- src/backend/utils/adt/timestamp.c 28 additions, 1 deletionsrc/backend/utils/adt/timestamp.c
- src/include/access/xact.h 3 additions, 3 deletionssrc/include/access/xact.h
- src/include/access/xlog_internal.h 2 additions, 2 deletionssrc/include/access/xlog_internal.h
- src/include/utils/timestamp.h 3 additions, 1 deletionsrc/include/utils/timestamp.h
Loading
Please register or sign in to comment