diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 2000-10-20 11:01:21 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 2000-10-20 11:01:21 +0000 |
commit | b58c0411bad414a5dbde8b38f615867c68adf55c (patch) | |
tree | e50db15a8b3ea5dd2cf9d54ef433835bbdae1358 /src/include/access/xlog.h | |
parent | e18a862d46fa3169c238a6b4a98a783c9a7896f9 (diff) | |
download | postgresql-b58c0411bad414a5dbde8b38f615867c68adf55c.tar.gz postgresql-b58c0411bad414a5dbde8b38f615867c68adf55c.zip |
redo/undo support functions and cleanups.
Diffstat (limited to 'src/include/access/xlog.h')
-rw-r--r-- | src/include/access/xlog.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index 69bf1487777..c73217f9ccc 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -72,12 +72,24 @@ typedef XLogPageHeaderData *XLogPageHeader; #define XLP_FIRST_IS_SUBRECORD 0x0001 +#define XLByteLT(left, right) \ + (right.xlogid > left.xlogid || \ + (right.xlogid == left.xlogid && right.xrecoff > left.xrecoff)) + +#define XLByteLE(left, right) \ + (right.xlogid > left.xlogid || \ + (right.xlogid == left.xlogid && right.xrecoff >= left.xrecoff)) + +#define XLByteEQ(left, right) \ + (right.xlogid == left.xlogid && right.xrecoff == left.xrecoff) + /* * StartUpID (SUI) - system startups counter. * It's to allow removing pg_log after shutdown. */ typedef uint32 StartUpID; extern StartUpID ThisStartUpID; +extern bool InRecovery; extern XLogRecPtr XLogInsert(RmgrId rmid, uint8 info, char *hdr, uint32 hdrlen, |