Compatibility rules
Applies to SEAM 1
These six rules govern every store. They are the rules the format has followed since its first stamp, and SEAM 1 readers and writers implement them.
- All earlier formats stay readable. Readers keep every older variant of every structure. No artifact is ever reinterpreted. This is why the pre-release layouts are still accepted.
- Refuse newer, before writing. A store whose
store_formatexceeds what the build supports fails at open withNewerFormat, and the directory is left byte-identical (SPEC V456). Any artifact revision above the build’s maximum is alsoNewerFormat(SPEC V457). Versions below the minimum, or bad magic, areCorrupt. See Error classes. - No downgrade. The first open by a newer build rewrites the MANIFEST and stamps it, so an older build then refuses the store. See Rewrite and format stamp.
- Every artifact revision bump raises the store stamp and adds a golden fixture directory (SPEC V455), with one exception: the self-describing footer additions, which are footer revisions 4 and 5 and stats revision 2. Those were added without a bump, so builds that predate them report
NewerFormat("sst footer")orNewerFormat("block stats")when they meet one. - Logical encodings evolve additively. Row values, catalog extension tags, WAL auxiliary kinds, blob metadata, postings, and RESP and materialized-view keys change by adding a version byte, a tag or a kind. They are never migrated (SPEC V461). See Extension tags and Auxiliary record.
- A file’s stamp is the minimum of its sources. The per-file stamp is the lower of the writer’s current stamp and the stamps of every file whose blocks were copied verbatim; flush, compaction and rewrite outputs carry the writer’s stamp (SPEC V458). See Per-file stamp.
Which builds read what
Section titled “Which builds read what”| Structure | Readable by |
|---|---|
| Anything written under a stamp up to the build’s own | The build, via the older decoder |
| A store stamped newer than the build | Nobody older: the open fails with NewerFormat |
| Footer revisions 4 and 5, stats revision 2 | Builds that include them. Older builds fail with NewerFormat("sst footer") or NewerFormat("block stats"). |
| Derived caches | Not versioned: an unknown magic or unreadable file is ignored and rebuilt, never migrated (SPEC V454) |