MySQL (InnoDB)

InnoDB page types

The two bytes at offset 24 of every page say what kind of page it is. These are the types in MySQL 8.4, with what each one holds.

NumberNameWhat it holds
0FIL_PAGE_TYPE_ALLOCATEDThe space is part of the file, but no page has been written here yet. A tablespace grows in whole extents, so most small files have many of these.
2FIL_PAGE_UNDO_LOGOld versions of changed rows, for rollback and for MVCC reads.
3FIL_PAGE_INODEEach entry describes one file segment: the extents and single pages it owns. Every index has two segments, one for its leaf pages and one for the rest.
4FIL_PAGE_IBUF_FREE_LISTA free page of the change buffer.
5FIL_PAGE_IBUF_BITMAPFour bits for each page in its range: roughly how full the page is, and whether changes to its secondary index entries are waiting in the change buffer.
6FIL_PAGE_TYPE_SYSA page of the system tablespace.
7FIL_PAGE_TYPE_TRX_SYSThe transaction system header in the system tablespace.
8FIL_PAGE_TYPE_FSP_HDRPage 0: the tablespace header (size, flags, free lists) followed by the descriptors of the first extents.
9FIL_PAGE_TYPE_XDESDescriptors for the next run of extents: which segment owns each extent and which of its pages are free.
10FIL_PAGE_TYPE_BLOBPart of an off-page column in the format older than MySQL 8.0: a length, a pointer to the next page, then data.
11FIL_PAGE_TYPE_ZBLOBThe first page of a compressed off-page column (old format).
12FIL_PAGE_TYPE_ZBLOB2A later page of a compressed off-page column (old format).
13FIL_PAGE_TYPE_UNKNOWNA page type InnoDB itself marks as unknown, written when a page is freed in some code paths.
14FIL_PAGE_COMPRESSEDPage compressed by the file system "punch hole" feature (COMPRESSION='zlib' or 'lz4').
15FIL_PAGE_ENCRYPTEDAn encrypted page. It cannot be read without the keyring.
16FIL_PAGE_COMPRESSED_AND_ENCRYPTEDA page both compressed and encrypted.
17FIL_PAGE_ENCRYPTED_RTREEAn encrypted spatial index page.
18FIL_PAGE_SDI_BLOBPart of a table definition too long for the SDI page, in the old BLOB format.
19FIL_PAGE_SDI_ZBLOBPart of a table definition, compressed.
20FIL_PAGE_TYPE_LEGACY_DBLWRThe old doublewrite buffer in the system tablespace.
21FIL_PAGE_TYPE_RSEG_ARRAYThe list of rollback segments in an undo tablespace.
22FIL_PAGE_TYPE_LOB_INDEXMore index entries of a large off-page column, when the first page has run out of room for them.
23FIL_PAGE_TYPE_LOB_DATAA chunk of a large off-page column (TEXT, BLOB, JSON) stored outside its row.
24FIL_PAGE_TYPE_LOB_FIRSTThe first page of a large off-page column: a header, an index of where each chunk lives, and the first chunk.
25FIL_PAGE_TYPE_ZLOB_FIRSTThe first page of an off-page column in a compressed table.
26FIL_PAGE_TYPE_ZLOB_DATACompressed data of an off-page column.
27FIL_PAGE_TYPE_ZLOB_INDEXIndex entries of a compressed off-page column.
28FIL_PAGE_TYPE_ZLOB_FRAGSmall fragments of compressed off-page columns.
29FIL_PAGE_TYPE_ZLOB_FRAG_ENTRYAn index of fragments of compressed off-page columns.
17853 (0x45BD)FIL_PAGE_SDIThe Serialized Dictionary Information: the table's definition as compressed JSON, in a B+tree of its own. This is what makes an 8.0 .ibd file describe itself.
17854 (0x45BE)FIL_PAGE_RTREEA page of a spatial (R-tree) index.
17855 (0x45BF)FIL_PAGE_INDEXA B+tree page: the clustered index (the table itself, in primary-key order) or a secondary index.

Names as in the InnoDB source (fil0fil.h). The descriptions are our own. In the viewer, each page's type is shown with its header.