Skip to content

Commit a1b2888

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

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
@@ -758,18 +758,18 @@ data. Empty in ordinary tables.</entry>
758758
<para>
759759

760760
The first 24 bytes of each page consists of a page header
761-
(PageHeaderData). Its format is detailed in <xref
762-
linkend="pageheaderdata-table">. The first two fields track the most
763-
recent WAL entry related to this page. Next is a 2-byte field
764-
containing flag bits. This is followed by three 2-byte integer fields
765-
(<structfield>pd_lower</structfield>, <structfield>pd_upper</structfield>,
766-
and <structfield>pd_special</structfield>). These contain byte offsets
767-
from the page start to the start
768-
of unallocated space, to the end of unallocated space, and to the start of
769-
the special space.
770-
The next 2 bytes of the page header,
771-
<structfield>pd_pagesize_version</structfield>, store both the page size
772-
and a version indicator. Beginning with
761+
(<structname>PageHeaderData</>). Its format is detailed in <xref
762+
linkend="pageheaderdata-table">. The first field tracks the most
763+
recent WAL entry related to this page. The second field contains
764+
the page checksum if <xref linkend="app-initdb-data-checksums"> are
765+
enabled. Next is a 2-byte field containing flag bits. This is followed
766+
by three 2-byte integer fields (<structfield>pd_lower</structfield>,
767+
<structfield>pd_upper</structfield>, and
768+
<structfield>pd_special</structfield>). These contain byte offsets
769+
from the page start to the start of unallocated space, to the end of
770+
unallocated space, and to the start of the special space. The next 2
771+
bytes of the page header, <structfield>pd_pagesize_version</structfield>,
772+
store both the page size and a version indicator. Beginning with
773773
<productname>PostgreSQL</productname> 8.3 the version number is 4;
774774
<productname>PostgreSQL</productname> 8.1 and 8.2 used version number 3;
775775
<productname>PostgreSQL</productname> 8.0 used version number 2;
@@ -799,7 +799,7 @@ data. Empty in ordinary tables.</entry>
799799
<tbody>
800800
<row>
801801
<entry>pd_lsn</entry>
802-
<entry>XLogRecPtr</entry>
802+
<entry>PageXLogRecPtr</entry>
803803
<entry>8 bytes</entry>
804804
<entry>LSN: next byte after last byte of xlog record for last change
805805
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