Design
This section documents the engineering rationale and internal architecture of pgsilo: why the project pairs the Silo S3 frontend with a PostgreSQL ObjectLayer backend, how S3 and SQL share a single transactional state machine, and how multi-gateway caches and background workers maintain consistency.
Design documents
| Document | Topic |
|---|---|
| Why a PostgreSQL backend | Target workloads, lessons from pgs3, when to choose PostgreSQL vs. erasure-coded storage, and capacity bounds |
| Design decisions | The ObjectLayer seam, 8 MiB bytea segments, commit_seq version ordering, lock hierarchy, and rejected alternatives |
| Integration with Silo | Auditing erasure-coded assumptions in Silo, .minio.sys persistence, S3 Select snapshots, and why iam_and_pg intersects IAM |
| SQL API design | Separating silo, silo_api, and silo_bucket, session_user security hardening, and per-bucket security_barrier ACL views |
| IAM control plane | Pool isolation, the 5-second freshness lease, standby heartbeats, and the schema 14 revision_token split-brain fix |
| Lifecycle and Object Lock | Database-enforced WORM retention, keyset lifecycle scanning, and epoch-fenced maintenance leases |
| MVP goal | 2026-11-08: ship as an experimental Silo backend; support tiers, release checklist, merge prerequisites |
| Status review and baseline, 2026-11-08 | Why testing did not close, the runtime baseline on 299378b, the IAM snapshot experiment and the request queue fix |
Who it is for, when it beats erasure-coded storage, and the alternatives that were evaluated.
The ObjectLayer seam, the data model and the rejected alternatives.
Where Silo assumes erasure coding, and why IAM and native authorization both apply.
Why objects are reachable from SQL and how per-bucket ACL relations work.
Pools, advisory locks, the 5-second bound and the revision token added in schema 14.
How lifecycle rules and retention work under leases.
Where pgsilo stood on 2026-11-08, why testing did not close, the runtime baseline on 299378b and the two fixes that followed.
The 2026-11-08 goal: ship pgsilo as an experimental Silo backend, with a release checklist sized for an MVP.