pub fn pg_dump_invocation(conn: &PgConnection, data_only: bool) -> SqlInvocationExpand description
Build the pg_dump invocation for an EXPORT. Custom format (-Fc): compressed and
the natural input to pg_restore. --data-only emits only the data AND EXCLUDES the
host-owned migration ledger’s rows (boatramp_migrations.*): the ledger is a schema
INSIDE the tenant database, so a plain --data-only dump would carry its rows and a
pg_restore --data-only --exit-on-error into the already-migrated target (the
matching-fingerprint case — the PRIMARY use) would hit a primary-key conflict on the
ledger and abort. Excluding it keeps the target’s own boatramp_migrations ledger
intact (the stated property).