Aura M4: PG PITR drill #1 (lab RPO/RTO)

  • Lab Docker Postgres 16 + WAL archive_command stand-in for CNPG Barman; measured RPO≈3.2s · RTO≈3.1s → budgets ≤5m / ≤1h confirmed (do not shrink budgets from lab scale).
  • Trap: recovery_target_time must be after commit — row created_at (statement start) can stop recovery before the desired commit; use post-commit clock_timestamp().
  • Trap: bind-mounted archive files need world-readable mode for container UID 70; restore PGDATA must be chown’d to postgres UID.
  • Restore is always a new Cluster (bootstrap.recovery + targetTime); never in-place overwrite. App cutover = Pooler DSN only.
  • Gates: check-pg-pitr-drill.sh + committed services/ops/pitr-drill/drill-1.record.json; CNPG/Barman scale re-drill = M5.