Changelog
Versions are released on PGXN.
Each upgrade script (pg_living_assertions--OLD--NEW.sql) documents, in its own
header, exactly what changed and why; that is the authoritative per-version
record.
0.5.5 – unreleased
- A temporary table of the session that evaluates an assertion can no longer
change what it reads. PostgreSQL searches
pg_tempfirst for tables wheneversearch_pathdoes not name it, and no path here named it.run()evaluated the check under the declarer’s path ("$user", public), sofrom cuentasread the evaluating session’spg_temp.cuentas; andrun()looked the assertion up withFROM assertions, so a temporaryassertionswith a forged row – a failing assertion’s name, the id of one that holds – made it answerholds.retire()andrun_all()read and wroteassertionsthe same way. That matters when the check runs in someone else’s session with the owner’s rights: aSECURITY DEFINERfunction of the owner that callsrun(), which is what pg_agent_gate does inside an agent’s commit. Measured on 0.5.4 with the real table broken (test/pg_temp.sh,make check-pgtemp): both ways answeredholds, and the record saidholds. Now every function namespg_templast,run(),run_all()andretire()name the registry by its schema, and the declared path is applied withset_config()– with anypg_tempin it moved to the end – instead of being concatenated into aSETstatement.
0.5.4 – 2026-10-06
- License: Apache License 2.0, replacing the PostgreSQL License, from this release on. Every version up to and including 0.5.3, already published, stays under the PostgreSQL License it was released with. No code changed.
0.5.3
Completes the copyright and licensing files: the copyright holder’s full legal name in LICENSE and README, and a per-file SPDX header on every SQL source file. No schema change.
0.5.2
No schema change. Adds project governance and legal files (NOTICE, AUTHORS,
SECURITY, CONTRIBUTING, TRADEMARK). The database objects are byte-for-byte those
of 0.5.1; the 0.5.1--0.5.2 upgrade is empty on purpose.
0.5.1 and earlier
See the header of each pg_living_assertions--*--*.sql upgrade script and the
release notes on PGXN.