Archived format-1 design note. The implemented current layout is table file v2, with a mandatory immutable header page 0. The current engine does not read or convert legacy table files.
Page zero contains redundant/validated table identity metadata:
- table magic and table-file format version
- database UUID
- object/table ID
- database page size
- checksum algorithm ID
- physical row format version
- creation and current generation
- first free page and page count hints
- header checksum
Every data page contains page type, page ID, page LSN, generation, slot/free-space data and checksum. Catalog metadata must agree with the file header.