Catalog records
The catalog is stored as ordinary entries under first byte 0x00, so it is versioned, flushed and compacted like any other data. A catalog key is 0x00 ‖ sub ‖ …, where sub is a single byte naming the record kind.
Key table
Section titled “Key table”| Key | Value |
|---|---|
0x00 't' ‖ lower(table name) |
table definition |
0x00 'n' |
next id counter |
0x00 's' |
sequences |
0x00 'u', 'K', 'k', 'h' |
users, SCRAM verifiers, decoys, caching_sha2 records |
0x00 'G', 'g' |
grants, grants meta |
0x00 'p', 'a', 'r' |
purge, alter, reclaim work records |
0x00 'D' |
databases |
0x00 'B' … |
blob metadata (0x00 'B' 'k' is blob secrets) |
Names of non-default databases are stored as db ‖ table joined with U+001F. Only the table definition value is specified; see Other catalog records.
Pages in this section
Section titled “Pages in this section”- Table definition, with columns and indexes.
- Extension tags: the additive list at the end of a table definition.
- Other catalog records.
Unknown records and tags evolve additively (SPEC V461), see Compatibility rules.