aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/xlog.h
diff options
context:
space:
mode:
authorVadim B. Mikheev <vadim4o@yahoo.com>2000-07-04 01:49:44 +0000
committerVadim B. Mikheev <vadim4o@yahoo.com>2000-07-04 01:49:44 +0000
commitd0273c07ac50ad78960f3a582cc17188c31a90d7 (patch)
tree3c9cc9cfc854da7b9e16bbc37e2838e12753b32f /src/include/access/xlog.h
parente1a118e5e6a2bb0c56db3267304d4652ae3f40fb (diff)
downloadpostgresql-d0273c07ac50ad78960f3a582cc17188c31a90d7.tar.gz
postgresql-d0273c07ac50ad78960f3a582cc17188c31a90d7.zip
misc
Diffstat (limited to 'src/include/access/xlog.h')
-rw-r--r--src/include/access/xlog.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h
index b86339f072f..69bf1487777 100644
--- a/src/include/access/xlog.h
+++ b/src/include/access/xlog.h
@@ -22,7 +22,7 @@ typedef struct XLogRecord
XLogRecPtr xl_prev; /* ptr to previous record in log */
XLogRecPtr xl_xact_prev; /* ptr to previous record of this xact */
TransactionId xl_xid; /* xact id */
- uint16 xl_len; /* len of record on this page */
+ uint16 xl_len; /* len of record *data* on this page */
uint8 xl_info;
RmgrId xl_rmid; /* resource manager inserted this record */
@@ -32,6 +32,10 @@ typedef struct XLogRecord
#define SizeOfXLogRecord DOUBLEALIGN(sizeof(XLogRecord))
#define MAXLOGRECSZ (2 * BLCKSZ)
+
+#define XLogRecGetData(record) \
+ ((char*)record + SizeOfXLogRecord)
+
/*
* When there is no space on current page we continue on the next
* page with subrecord.