9.3. Internal Layout of WAL Segment
A WAL segment is a 16 MB file by default, and it is internally divided into pages of 8192 bytes (8 KB).
The first page has a header-data defined by the XLogLongPageHeaderData
structure,
while the headings of all other pages have the page information defined by the XLogPageHeaderData
structure.
Following the page header, XLOG records are written in each page from the beginning in descending order.
See Fig. 9.7.
The XLogLongPageHeaderData structure and the XLogPageHeaderData structure are defined in src/include/access/xlog_internal.h. The explanation of both structures is omitted because they are not required in the following descriptions.