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

Commita1b2888

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

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

[8]ページ先頭

©2009-2025 Movatter.jp