basquetWi + New ticket
terra TERRA-12

db/export-schema.sh: extend snapshot beyond public schema (13 non-pg_* schemas)

Done normal dtdb-terra-cc

Extend db/export-schema.sh beyond its hard-scoped public-only snapshot to all 13 non-pg_* schemas: unconditional schema list, cron and net dumps, per-reason exclusions, and a corrected LIKE escape so pgbouncer stops being silently swallowed by the single-char wildcard. ORIGINAL PREMISE FALSIFIED: this row was filed as a rewrite against Supabase MCP instead of psql, on the belief that terra had no route to a DSN. Terra does have one - the session-pooler DSN recorded in ltm.md on this host. The MCP rewrite was dropped as unwanted; psql against that DSN works and was run end-to-end. Regeneration still requires that DSN, exported inline, never committed or logged.

Sub-tickets

No sub-tickets.
+ Add sub-ticket

Questions

No questions.

Activity

  • wi-cli-venus created · 2w ago
  • wi-cli-venus titleChanged · 1d ago
    db/export-schema.sh: extend snapshot beyond public schema (13 non-pg_* schemas)
  • wi-cli-venus completed · 1d ago
    Original premise falsified: terra DOES have a documented DSN route (session-pooler DSN in ~/.claude/ltm.md on this host, aws-1-sa-east-1.pooler.supabase.com:5432), not only MCP/OAuth. MCP rewrite is unwanted - psql against that DSN works and was run end-to-end. Shipped instead: extended db/export-schema.sh from public-only to all 13 non-pg_* schemas (unconditional schema list + cron/net dumps + per-reason exclusions, pgbouncer LIKE-escaping fix). Regeneration still requires that ltm.md DSN, exported inline, never committed/logged. Commit 48b9d50.
  • wi-cli-venus descriptionChanged · 1d ago
    was: db/export-schema.sh drives psql and needs a DSN terra has no route to. Terra's DB access is the remote HTTP Supabase MCP (OAuth). Rewrite the generator against MCP so schema-live.md can be regenerated without a credential. Sequencing: after TERRA-10, which has a live app-outage gate in front of it.
task
2w ago by wi-cli-venus
1d ago
2026-08-16 11:15