Skip to content

Commit 2176da7

Browse files
committed
Correct description of PageHeaderData layout in documentation
Back-patch to 9.3 where PageHeaderData layout was changed. Michael Paquier
1 parent d6e36d8 commit 2176da7

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

doc/src/sgml/storage.sgml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -625,18 +625,18 @@ data. Empty in ordinary tables.</entry>
625625
<para>
626626

627627
The first 24 bytes of each page consists of a page header
628-
(PageHeaderData). Its format is detailed in <xref
629-
linkend="pageheaderdata-table">. The first two fields track the most
630-
recent WAL entry related to this page. Next is a 2-byte field
631-
containing flag bits. This is followed by three 2-byte integer fields
632-
(<structfield>pd_lower</structfield>, <structfield>pd_upper</structfield>,
633-
and <structfield>pd_special</structfield>). These contain byte offsets
634-
from the page start to the start
635-
of unallocated space, to the end of unallocated space, and to the start of
636-
the special space.
637-
The next 2 bytes of the page header,
638-
<structfield>pd_pagesize_version</structfield>, store both the page size
639-
and a version indicator. Beginning with
628+
(<structname>PageHeaderData</>). Its format is detailed in <xref
629+
linkend="pageheaderdata-table">. The first field tracks the most
630+
recent WAL entry related to this page. The second field contains
631+
the page checksum if <xref linkend="app-initdb-data-checksums"> are
632+
enabled. Next is a 2-byte field containing flag bits. This is followed
633+
by three 2-byte integer fields (<structfield>pd_lower</structfield>,
634+
<structfield>pd_upper</structfield>, and
635+
<structfield>pd_special</structfield>). These contain byte offsets
636+
from the page start to the start of unallocated space, to the end of
637+
unallocated space, and to the start of the special space. The next 2
638+
bytes of the page header, <structfield>pd_pagesize_version</structfield>,
639+
store both the page size and a version indicator. Beginning with
640640
<productname>PostgreSQL</productname> 8.3 the version number is 4;
641641
<productname>PostgreSQL</productname> 8.1 and 8.2 used version number 3;
642642
<productname>PostgreSQL</productname> 8.0 used version number 2;
@@ -666,7 +666,7 @@ data. Empty in ordinary tables.</entry>
666666
<tbody>
667667
<row>
668668
<entry>pd_lsn</entry>
669-
<entry>XLogRecPtr</entry>
669+
<entry>PageXLogRecPtr</entry>
670670
<entry>8 bytes</entry>
671671
<entry>LSN: next byte after last byte of xlog record for last change
672672
to this page</entry>

0 commit comments

Comments
 (0)