Static DDL Linter
Flags table rewrites and blocking locks inside pull requests.
Driftless parses every pull request with libpg_query, backfills shadow tables via throttled logical replication, and executes atomic OID swaps under a strict 150ms lock timeout.
Execution Plan & Cutover Guard
$ driftless apply --strategy shadow-logical --lock-timeout 150ms \
--sql "ALTER COLUMN id TYPE bigint"
[01/04] AST Lint → ACCESS_EXCLUSIVE rewrite detected (4.2 TB)
[02/04] Shadow Table → _driftless_shadow provisioned (0ms lock)
[03/04] Chunk Backfill → 38,000 write QPS live · p99 +1.4 ms
[04/04] Atomic Swap → OID cutover completed in 62 ms (safe < 150ms) Cutover Lock
62 ms
p99 Latency Delta
+1.4 ms
Table Footprint
4.2 TB
Sustained Write QPS
38,000
Core Safeguards
Flags table rewrites and blocking locks inside pull requests.
Backfills multi-terabyte tables through throttled logical replication.
Retries atomic cutover windows without stalling production queries.
Streams post-cutover mutations backward for sub-second schema rollback.