Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit907f3a9

Browse files
committed
Correct description of PageHeaderData layout in documentation
Back-patch to 9.3 where PageHeaderData layout was changed.Michael Paquier
1 parent59d310b commit907f3a9

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 firsttwo fields track the most
651-
recent WAL entry related to this page.Next is a 2-bytefield
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-
thespecialspace.
658-
The next 2 bytesof thepage 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 firstfield tracks the most
651+
recent WAL entry related to this page.The secondfield 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+
fromthepage start to the start of unallocatedspace, to the end of
658+
unallocated space, and to the startof thespecial space. The next 2
659+
bytes of the page header,<structfield>pd_pagesize_version</structfield>,
660+
store both the page sizeand 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)

[8]ページ先頭

©2009-2025 Movatter.jp