diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-04-30 21:01:53 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-04-30 21:01:53 +0000 |
commit | c4320619635800a6116a02eee08b232c5abea266 (patch) | |
tree | 3db9b7562baf005c9ccf4976c293a4328dfa9509 /src/include/access/xact.h | |
parent | 641912b4d17fd214a5e5bae4e7bb9ddbc28b144b (diff) | |
download | postgresql-c4320619635800a6116a02eee08b232c5abea266.tar.gz postgresql-c4320619635800a6116a02eee08b232c5abea266.zip |
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.
Diffstat (limited to 'src/include/access/xact.h')
-rw-r--r-- | src/include/access/xact.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/access/xact.h b/src/include/access/xact.h index 8ec834676df..759eab1a3d9 100644 --- a/src/include/access/xact.h +++ b/src/include/access/xact.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/xact.h,v 1.86 2007/04/30 03:23:49 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/xact.h,v 1.87 2007/04/30 21:01:53 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -81,7 +81,7 @@ typedef void (*SubXactCallback) (SubXactEvent event, SubTransactionId mySubid, typedef struct xl_xact_commit { - time_t xtime; + TimestampTz xact_time; /* time of commit */ int nrels; /* number of RelFileNodes */ int nsubxacts; /* number of subtransaction XIDs */ /* Array of RelFileNode(s) to drop at commit */ @@ -93,7 +93,7 @@ typedef struct xl_xact_commit typedef struct xl_xact_abort { - time_t xtime; + TimestampTz xact_time; /* time of abort */ int nrels; /* number of RelFileNodes */ int nsubxacts; /* number of subtransaction XIDs */ /* Array of RelFileNode(s) to drop at abort */ |