diff options
Diffstat (limited to 'src/include/access/xlog.h')
-rw-r--r-- | src/include/access/xlog.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index bb53a04b498..87ff6aba501 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -6,7 +6,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/xlog.h,v 1.76 2007/01/05 22:19:51 momjian Exp $ + * $PostgreSQL: pgsql/src/include/access/xlog.h,v 1.77 2007/05/20 21:08:19 tgl Exp $ */ #ifndef XLOG_H #define XLOG_H @@ -66,8 +66,7 @@ typedef struct XLogRecord /* * If we backed up any disk blocks with the XLOG record, we use flag bits in * xl_info to signal it. We support backup of up to 3 disk blocks per XLOG - * record. (Could support 4 if we cared to dedicate all the xl_info bits for - * this purpose; currently bit 0 of xl_info is unused and available.) + * record. */ #define XLR_BKP_BLOCK_MASK 0x0E /* all info bits used for bkp blocks */ #define XLR_MAX_BKP_BLOCKS 3 @@ -77,6 +76,15 @@ typedef struct XLogRecord #define XLR_BKP_BLOCK_3 XLR_SET_BKP_BLOCK(2) /* 0x02 */ /* + * Bit 0 of xl_info is set if the backed-up blocks could safely be removed + * from a compressed version of XLOG (that is, they are backed up only to + * prevent partial-page-write problems, and not to ensure consistency of PITR + * recovery). The compression algorithm would need to extract data from the + * blocks to create an equivalent non-full-page XLOG record. + */ +#define XLR_BKP_REMOVABLE 0x01 + +/* * Sometimes we log records which are out of transaction control. * Rmgr may "or" XLOG_NO_TRAN into info passed to XLogInsert to indicate this. */ |