feat: keep previous timescaledb versioned libraries in the image #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/timescaledb-previous-so"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
TimescaleDB's preloaded loader opens timescaledb-X.Y.Z.so matching each
database's catalog version at session start. Shipping only the current
library made any image bump over an existing cluster fail hard: every
session in the database errors with 'could not access file', including
the one needed to run ALTER EXTENSION UPDATE (CNPG Database
reconciliation included). Validated end-to-end in containers, and the
official cloudnative-pg extension image has the same flaw (inspected).
The builder now also extracts the versioned .so of every version PGDG
still publishes (apt-cache madison loop, versioned libraries only; the
loader and SQL scripts stay those of the pinned version), which is what
official Timescale packages do. With the previous library present, a
plain ALTER EXTENSION timescaledb UPDATE completes after an image bump —
validated against the built image with a 2.28.1 catalog.
Also documents the upgrade flow and the timescaledb.disable_load escape
hatch, and recommends immutable tags for dev compose volumes.
Co-Authored-By: Claude Fable 5 noreply@anthropic.com