Repository navigation
Ankus 0.2.33
Ankus 0.2.33 moves to PostgreSQL 19.0 and the November minor releases, 14.25, 15.20, 16.16, 17.12 and 18.7, which fix CVE-2026-6460. On those releases PostgreSQL checks that a composite datum still matches its row type before reading it. Typed composite arguments already read through that check, but a raw PgDatum copy of a composite was flattened in a way that marked a datum formed before an upgrade as current. It now goes through the same check, and PgSqlStates.DatumVersionMismatch names the new SQLSTATE 22P07. Native bindings for PostgreSQL 15 through 19 now come from pgrx 0.20.1, and 13 and 14, which pgrx 0.20 dropped, stay on 0.19.3.
ankus regress accepts several test names and runs their matches in command-line order, once each, failing on every name that matches nothing. A -- pgrx-regress-skip pg15 pg16 or -- pgrx-regress-only pg17 pg18 comment in a test skips it by major, as in cargo-pgrx. ankus init now retries the PostgreSQL release list and checksum downloads as it already retried archives.
A rethrown PgException keeps the untranslated message, the domain of its context lines and the errno behind %m, which log hooks read and earlier releases dropped. PgLogLevel gains WarningClientOnly and FatalClientOnly, which report to the client and never to the server log; PostgreSQL 13 rejects the first and only 19 supports the second.
Test servers started by Ankus.Testing now set PGHOST, PGPORT and PGUSER to themselves, as pg_regress's temporary instance does, so a backend that connects by database name, such as a second session or a subscription, reaches the same server. On Windows, stopping a test server now waits for PostgreSQL to close its log, which pg_ctl stop -w can return before, so reading or deleting the log right after disposal no longer fails with a sharing violation.
New test projects take Npgsql from Ankus.Testing and need no reference of their own. Ankus.Testing still accepts Npgsql 10.0.3 and later, so projects created earlier, which pin it, keep building after ankus upgrade.
The runtime and compiler packages stay at 10.0.15-ankus.3 and 11.0.0-ankus.3. To update, run dotnet tool update --global Ankus.Tool --version 0.2.33, then ankus upgrade in your solution.