docs(deployment): add PgBouncer transaction-mode requirement for DEFERRABLE constraints
All checks were successful
CI / Unit & Component Tests (pull_request) Successful in 4m9s
CI / OCR Service Tests (pull_request) Successful in 24s
CI / Backend Unit Tests (pull_request) Successful in 4m50s
CI / fail2ban Regex (pull_request) Successful in 47s
CI / Semgrep Security Scan (pull_request) Successful in 23s
CI / Compose Bucket Idempotency (pull_request) Successful in 1m7s
All checks were successful
CI / Unit & Component Tests (pull_request) Successful in 4m9s
CI / OCR Service Tests (pull_request) Successful in 24s
CI / Backend Unit Tests (pull_request) Successful in 4m50s
CI / fail2ban Regex (pull_request) Successful in 47s
CI / Semgrep Security Scan (pull_request) Successful in 23s
CI / Compose Bucket Idempotency (pull_request) Successful in 1m7s
The journey_items position_seq dedup constraint is DEFERRABLE INITIALLY DEFERRED, which requires PgBouncer to run in transaction-mode pooling. Document this so operators know not to switch to statement-level pooling. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -124,6 +124,8 @@ All vars are set in `.env` at the repo root (copy from `.env.example`). The back
|
|||||||
| `POSTGRES_PASSWORD` | DB password | `change-me` | YES | YES |
|
| `POSTGRES_PASSWORD` | DB password | `change-me` | YES | YES |
|
||||||
| `POSTGRES_DB` | Database name | `family_archive_db` | YES | — |
|
| `POSTGRES_DB` | Database name | `family_archive_db` | YES | — |
|
||||||
|
|
||||||
|
> **PgBouncer pooling mode:** The `journey_items.position_seq` dedup constraint uses `DEFERRABLE INITIALLY DEFERRED`. This requires PgBouncer in **transaction-mode** (not statement-mode) pooling. Do not switch to statement-level pooling — deferred constraints only work within a single transaction session.
|
||||||
|
|
||||||
### MinIO container
|
### MinIO container
|
||||||
|
|
||||||
| Variable | Purpose | Default | Required? | Sensitive? |
|
| Variable | Purpose | Default | Required? | Sensitive? |
|
||||||
|
|||||||
Reference in New Issue
Block a user