apps(osint): pg image r3 for timescaledb 2.32.1 on PG 16.16 (fix all policy jobs) #33

Merged
sirius merged 1 commit from wt/t_c3e6d2cd into master 2026-11-21 22:14:05 +00:00
Owner

PG 16.16 added the PortalDrop() "cannot drop portal "" while it is being set up" check that TimescaleDB <=2.32.0 trips from the background scheduler. Every osint-db policy job failed with SQLSTATE 24000 (job_stats last_run_status=Failed, last_successful_finish=-infinity) while CALL run_job() worked — timescale/timescaledb#11038, fixed in 2.31.2/2.32.1.

Fix: rebuild the pg image with both halves pinned — postgres:16.16-bookworm and timescaledb-2-{postgresql,loader-postgresql}-16=2.32.1~debian12-1616. Pushed as amd64-c48788d4b614-r3 (digest sha256:b2bdc093...), deployed to osint-db on the linode PVC.

Verified before touching live on a throwaway pod: fresh pg_dump -Fc restore, extension created at 2.32.0, ALTER EXTENSION UPDATE TO 2.32.1, all 12 jobs then Success with real last_successful_finish and zero cannot drop portal lines.

Also records why neither pin may be released: a PG minor bump without a matching TimescaleDB build reintroduces exactly this failure.

PG 16.16 added the `PortalDrop()` "cannot drop portal \"\" while it is being set up" check that TimescaleDB <=2.32.0 trips from the background scheduler. Every `osint-db` policy job failed with SQLSTATE 24000 (job_stats `last_run_status=Failed`, `last_successful_finish=-infinity`) while `CALL run_job()` worked — timescale/timescaledb#11038, fixed in 2.31.2/2.32.1. **Fix:** rebuild the pg image with both halves pinned — `postgres:16.16-bookworm` and `timescaledb-2-{postgresql,loader-postgresql}-16=2.32.1~debian12-1616`. Pushed as `amd64-c48788d4b614-r3` (digest `sha256:b2bdc093...`), deployed to `osint-db` on the linode PVC. **Verified before touching live** on a throwaway pod: fresh `pg_dump -Fc` restore, extension created at 2.32.0, `ALTER EXTENSION UPDATE TO 2.32.1`, all 12 jobs then `Success` with real `last_successful_finish` and zero `cannot drop portal` lines. Also records why neither pin may be released: a PG minor bump without a matching TimescaleDB build reintroduces exactly this failure.
PG 16.16 added the PortalDrop() "cannot drop portal" check that
TimescaleDB <=2.32.0 trips from the background scheduler, so every policy
job (refresh/compression/retention/job history) failed with SQLSTATE 24000
although CALL run_job() worked (timescale/timescaledb#11038, fixed in
2.32.1).

Rebuilt apps/base/osint/pg-image/Dockerfile with:
- base postgres:16.16-bookworm (was floating 16-bookworm)
- timescaledb-2-postgresql-16 / -2-loader-postgresql-16 pinned to
  2.32.1~debian12-1616 (built against PG 16.16)

Pushed as amd64-c48788d4b614-r3 (digest sha256:b2bdc093...), verified by a
throwaway restore of a fresh pg_dump: extension 2.32.0 -> ALTER EXTENSION
UPDATE 2.32.1 -> all 12 jobs Success with real last_successful_finish and
no portal errors.
sirius merged commit 0e6fa0d738 into master 2026-11-21 22:14:05 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/homek8s!33
No description provided.