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.
| Number | Name | What it holds |
|---|---|---|
| 0 | FIL_PAGE_TYPE_ALLOCATED | The 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. |
| 2 | FIL_PAGE_UNDO_LOG | Old versions of changed rows, for rollback and for MVCC reads. |
| 3 | FIL_PAGE_INODE | Each 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. |
| 4 | FIL_PAGE_IBUF_FREE_LIST | A free page of the change buffer. |
| 5 | FIL_PAGE_IBUF_BITMAP | Four 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. |
| 6 | FIL_PAGE_TYPE_SYS | A page of the system tablespace. |
| 7 | FIL_PAGE_TYPE_TRX_SYS | The transaction system header in the system tablespace. |
| 8 | FIL_PAGE_TYPE_FSP_HDR | Page 0: the tablespace header (size, flags, free lists) followed by the descriptors of the first extents. |
| 9 | FIL_PAGE_TYPE_XDES | Descriptors for the next run of extents: which segment owns each extent and which of its pages are free. |
| 10 | FIL_PAGE_TYPE_BLOB | Part of an off-page column in the format older than MySQL 8.0: a length, a pointer to the next page, then data. |
| 11 | FIL_PAGE_TYPE_ZBLOB | The first page of a compressed off-page column (old format). |
| 12 | FIL_PAGE_TYPE_ZBLOB2 | A later page of a compressed off-page column (old format). |
| 13 | FIL_PAGE_TYPE_UNKNOWN | A page type InnoDB itself marks as unknown, written when a page is freed in some code paths. |
| 14 | FIL_PAGE_COMPRESSED | Page compressed by the file system "punch hole" feature (COMPRESSION='zlib' or 'lz4'). |
| 15 | FIL_PAGE_ENCRYPTED | An encrypted page. It cannot be read without the keyring. |
| 16 | FIL_PAGE_COMPRESSED_AND_ENCRYPTED | A page both compressed and encrypted. |
| 17 | FIL_PAGE_ENCRYPTED_RTREE | An encrypted spatial index page. |
| 18 | FIL_PAGE_SDI_BLOB | Part of a table definition too long for the SDI page, in the old BLOB format. |
| 19 | FIL_PAGE_SDI_ZBLOB | Part of a table definition, compressed. |
| 20 | FIL_PAGE_TYPE_LEGACY_DBLWR | The old doublewrite buffer in the system tablespace. |
| 21 | FIL_PAGE_TYPE_RSEG_ARRAY | The list of rollback segments in an undo tablespace. |
| 22 | FIL_PAGE_TYPE_LOB_INDEX | More index entries of a large off-page column, when the first page has run out of room for them. |
| 23 | FIL_PAGE_TYPE_LOB_DATA | A chunk of a large off-page column (TEXT, BLOB, JSON) stored outside its row. |
| 24 | FIL_PAGE_TYPE_LOB_FIRST | The first page of a large off-page column: a header, an index of where each chunk lives, and the first chunk. |
| 25 | FIL_PAGE_TYPE_ZLOB_FIRST | The first page of an off-page column in a compressed table. |
| 26 | FIL_PAGE_TYPE_ZLOB_DATA | Compressed data of an off-page column. |
| 27 | FIL_PAGE_TYPE_ZLOB_INDEX | Index entries of a compressed off-page column. |
| 28 | FIL_PAGE_TYPE_ZLOB_FRAG | Small fragments of compressed off-page columns. |
| 29 | FIL_PAGE_TYPE_ZLOB_FRAG_ENTRY | An index of fragments of compressed off-page columns. |
| 17853 (0x45BD) | FIL_PAGE_SDI | The 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_RTREE | A page of a spatial (R-tree) index. |
| 17855 (0x45BF) | FIL_PAGE_INDEX | A 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.