Extension tags
After the indexes, a table definition carries zero or more extensions:
ext = tag u8 ‖ varint len ‖ bodyUnknown tags are skipped, using len, so extensions evolve additively. A reader that does not know a tag still parses the rest of the definition.
| Tag | Page | Holds |
|---|---|---|
R |
Relations | foreign keys, interleave parent |
S |
Schema | column ids, fills, hidden columns, index building and JSON path, FK names |
M |
Metadata | SQL types, defaults, ON UPDATE, comments, FK on-update |
I |
INCLUDE columns | covering columns of an index |
D |
DESC flags | descending index parts |
C |
Compression | 1 byte |
B |
Bloom off | 1 byte, value 1 |
V |
Materialized views | id, building flag, name, SQL |
X |
Search options | analyzer, positions trailer 0x50 |
The tag is the ASCII letter. A writer emits the tags in the order R, S, M, I, D, C, B, V, X and omits a tag whose content is empty; S and M are always written. Each page gives the body layout as read from the code.