release(pg_tle): add a data-preserving 0.2.0 to 0.3.0 update path
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.sqlrunsDROP EXTENSION pgque CASCADE, dropping the PgQue schema/data.- No
pgtle.install_update_path(or equivalent update registration) exists. tests/test_tle_install.sqlcovers 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.sqldevel/sql/pgque-tle-uninstall.sqltests/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.
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