Correct description of PageHeaderData layout in documentation
authorFujii Masao
Fri, 11 Sep 2015 04:02:15 +0000 (13:02 +0900)
committerFujii Masao
Fri, 11 Sep 2015 04:03:06 +0000 (13:03 +0900)
Back-patch to 9.3 where PageHeaderData layout was changed.

Michael Paquier

doc/src/sgml/storage.sgml

index 8d9610e7040048bf0d7da81f8d4d313d7be30f90..fd31b73b62693f6b6372a61678d4691015df703e 100644 (file)
@@ -625,18 +625,18 @@ data. Empty in ordinary tables.
  
 
   The first 24 bytes of each page consists of a page header
-  (PageHeaderData). Its format is detailed in 
-  linkend="pageheaderdata-table">. The first two fields track the most
-  recent WAL entry related to this page. Next is a 2-byte field
-  containing flag bits. This is followed by three 2-byte integer fields
-  (pd_lowerpd_upper,
-  and pd_special). These contain byte offsets
-  from the page start to the start
-  of unallocated space, to the end of unallocated space, and to the start of
-  the special space.
-  The next 2 bytes of the page header,
-  pd_pagesize_version, store both the page size
-  and a version indicator.  Beginning with
+  (PageHeaderData). Its format is detailed in 
+  linkend="pageheaderdata-table">. The first field tracks the most
+  recent WAL entry related to this page. The second field contains
+  the page checksum if  are
+  enabled.  Next is a 2-byte field containing flag bits. This is followed
+  by three 2-byte integer fields (pd_lower,
+  pd_upper, and
+  pd_special).  These contain byte offsets
+  from the page start to the start of unallocated space, to the end of
+  unallocated space, and to the start of the special space.  The next 2
+  bytes of the page header, pd_pagesize_version,
+  store both the page size and a version indicator.  Beginning with
   PostgreSQL 8.3 the version number is 4;
   PostgreSQL 8.1 and 8.2 used version number 3;
   PostgreSQL 8.0 used version number 2;
@@ -666,7 +666,7 @@ data. Empty in ordinary tables.
  
   
    pd_lsn
-   XLogRecPtr
+   PageXLogRecPtr
    8 bytes
    LSN: next byte after last byte of xlog record for last change
    to this page