Repository navigation
Ankus 0.2.34
Ankus 0.2.34 fixes how a PgDatum read from an SPI row carries a 4-byte unsigned value. Cells of type oid, regclass and xid were rebuilt zero-extended, as ObjectIdGetDatum does, while PostgreSQL's own copy of a 4-byte value is the sign-extended one fetch_att reads, so 4294967295::oid had different bits from a row and from an array. They now rebuild as PostgreSQL copies them. PgHeapTuple.Get<PgDatum> on a dropped attribute now returns null, as pgrx 0.20's safety audit returns None.
PgAlign has PostgreSQL's alignment macros for sizing structures it lays out: TypeAlign, TypeAlignDown and the ShortAlign through BufferAlign forms, with the platform's ALIGNOF_* values. An alignment that isn't a power of two, or a rounding that overflows, throws. The tree walkers and mutators, such as expression_tree_walker and query_tree_mutator, now have PostgreSQL 16's typed callback signatures on every major, so one [PgNativeCallback] implementation serves 13 through 19.
PgBackendThread.IsActive and AssertActive() check that code runs on the backend thread, and PgInterrupts.Check rejects another thread before it reads backend state. PgTransactionId.Max and the new PgMultiXactId match the headers' constants. PgNodes.DangerousIsA and DangerousTryCast<T> take raw node pointers that may be NULL. Generated Ankus.Generated.PgExtensionInfo holds the installed extension version and the package version.
With IncludeTests, the extension test fixture now creates the tests schema itself before CREATE EXTENSION ... CASCADE, so an extension and the extensions it requires can all put test objects there. A report below ERROR can throw when an error context callback raises while formatting it, and the logging guide says so.
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.34, then ankus upgrade in your solution.