summaryrefslogtreecommitdiff
path: root/src/include/storage
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2013-04-30 12:27:12 +0100
committerSimon Riggs <simon@2ndQuadrant.com>2013-04-30 12:27:12 +0100
commit443951748ce4c94b001877c7cf88b0ee969c79e7 (patch)
tree6f5af0f79b52f3e9df2b88b5322d573ed0a34f40 /src/include/storage
parent730924397c8151c3cf34e633211cd0fe4a0db112 (diff)
Record data_checksum_version in control file.
The value is not used anywhere in code, but will allow future changes to the checksum version should that become necessary in the future.
Diffstat (limited to 'src/include/storage')
-rw-r--r--src/include/storage/bufpage.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/storage/bufpage.h b/src/include/storage/bufpage.h
index b9ee7c27e10..df581b779f6 100644
--- a/src/include/storage/bufpage.h
+++ b/src/include/storage/bufpage.h
@@ -189,9 +189,12 @@ typedef PageHeaderData *PageHeader;
* Release 8.3 uses 4; it changed the HeapTupleHeader layout again, and
* added the pd_flags field (by stealing some bits from pd_tli),
* as well as adding the pd_prune_xid field (which enlarges the header).
+ *
+ * As of Release 9.3, the checksum version must also be considered when
+ * handling pages.
*/
#define PG_PAGE_LAYOUT_VERSION 4
-
+#define PG_DATA_CHECKSUM_VERSION 1
/* ----------------------------------------------------------------
* page support macros