Skip to content

Commit 907f3a9

Browse files
committed
Correct description of PageHeaderData layout in documentation
Back-patch to 9.3 where PageHeaderData layout was changed. Michael Paquier
1 parent 59d310b commit 907f3a9

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
@@ -646,18 +646,18 @@ data. Empty in ordinary tables.</entry>
646646
<para>
647647

648648
The first 24 bytes of each page consists of a page header
649-
(PageHeaderData). Its format is detailed in <xref
650-
linkend="pageheaderdata-table">. The first two fields track the most
651-
recent WAL entry related to this page. Next is a 2-byte field
652-
containing flag bits. This is followed by three 2-byte integer fields
653-
(<structfield>pd_lower</structfield>, <structfield>pd_upper</structfield>,
654-
and <structfield>pd_special</structfield>). These contain byte offsets
655-
from the page start to the start
656-
of unallocated space, to the end of unallocated space, and to the start of
657-
the special space.
658-
The next 2 bytes of the page header,
659-
<structfield>pd_pagesize_version</structfield>, store both the page size
660-
and a version indicator. Beginning with
649+
(<structname>PageHeaderData</>). Its format is detailed in <xref
650+
linkend="pageheaderdata-table">. The first field tracks the most
651+
recent WAL entry related to this page. The second field contains
652+
the page checksum if <xref linkend="app-initdb-data-checksums"> are
653+
enabled. Next is a 2-byte field containing flag bits. This is followed
654+
by three 2-byte integer fields (<structfield>pd_lower</structfield>,
655+
<structfield>pd_upper</structfield>, and
656+
<structfield>pd_special</structfield>). These contain byte offsets
657+
from the page start to the start of unallocated space, to the end of
658+
unallocated space, and to the start of the special space. The next 2
659+
bytes of the page header, <structfield>pd_pagesize_version</structfield>,
660+
store both the page size and a version indicator. Beginning with
661661
<productname>PostgreSQL</productname> 8.3 the version number is 4;
662662
<productname>PostgreSQL</productname> 8.1 and 8.2 used version number 3;
663663
<productname>PostgreSQL</productname> 8.0 used version number 2;
@@ -687,7 +687,7 @@ data. Empty in ordinary tables.</entry>
687687
<tbody>
688688
<row>
689689
<entry>pd_lsn</entry>
690-
<entry>XLogRecPtr</entry>
690+
<entry>PageXLogRecPtr</entry>
691691
<entry>8 bytes</entry>
692692
<entry>LSN: next byte after last byte of xlog record for last change
693693
to this page</entry>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy