PgQue icon indicating copy to clipboard operation
PgQue copied to clipboard

release(pg_tle): add a data-preserving 0.2.0 to 0.3.0 update path

Open NikolayS opened this issue 4 months ago • 1 comments

Severity

High — release blocker for existing pg_tle users.

Problem

The README advertises ALTER EXTENSION pgque UPDATE, but the generated pg_tle wrapper rejects registration when any other version exists and tells the operator to run the uninstall script first.

That path is destructive:

  • devel/sql/pgque-tle-uninstall.sql runs DROP EXTENSION pgque CASCADE, dropping the PgQue schema/data.
  • No pgtle.install_update_path (or equivalent update registration) exists.
  • tests/test_tle_install.sql covers fresh install and same-version idempotency only.

Relevant files:

  • README.md (pg_tle upgrade promise)
  • build/transform.sh (different-version guard)
  • devel/sql/pgque-tle.sql
  • devel/sql/pgque-tle-uninstall.sql
  • tests/test_tle_install.sql

Expected fix

Register and test a non-destructive pg_tle update path from 0.2.0 to 0.3.0 using the idempotent migration body. Add real pg_tle CI that:

  • installs/registers 0.2.0;
  • creates queue, subscription, pending event, retry/DLQ state;
  • registers 0.3.0 and runs ALTER EXTENSION pgque UPDATE;
  • verifies all state survives and new 0.3 APIs work;
  • covers uninstall separately.

If a real update path cannot ship, remove the upgrade claim and document a tested non-destructive conversion procedure. Do not direct users to uninstall/reinstall their data.

NikolayS avatar Jul 10 '26 09:07 NikolayS

Shipped in v0.3.0-rc.2 (merged to main via #395 at f4c7457): https://github.com/NikolayS/PgQue/releases/tag/v0.3.0-rc.2

NikolayS avatar Nov 21 '26 16:11 NikolayS