Repository navigation
Ankus 0.2.35
Ankus 0.2.35 completes the port of pgrx 0.20.1.
On PostgreSQL 15 through 19, NativeMethods has a method for each function-like macro in the selected headers, as pgrx generates a Rust macro for each one. The build types every operand with Clang and runs the macro through a C function compiled against the same headers, so TransactionIdAdvance(&xid), BUFFERALIGN(33) and InHotStandby() work as they do in C. A macro that names a type takes it as a type argument: makeNode<Query>(), IsA<Query>(node), castNode<T>, the lfirst_node family and palloc_object<T>(). The build writes native-macro-report.json with each method's C signature and why any macro has none. Generated node types now carry their own tags for IsA and allocation, and header helpers that touch no C global run on any thread.
PgTsVector, PgTsQuery and PgTsConfig port pgrx's text search types. They carry the bytes PostgreSQL stores and call its own functions for parsing, matching, ranking, combining and ordering. PgDsmLwLock<T> holds a value beside a lightweight lock in a parallel custom scan's dynamic shared memory. ankus migrate assembles unreleased SQL migration fragments into the next upgrade script, and install, run, regress and bench can use them for development. ankus package writes RPM and DEB packages when AnkusRpmPackage or AnkusDebPackage is set.
ankus regress, run and connect no longer give psql a 10-second connect timeout, which pgrx doesn't set. A development cluster's status now waits while a starting or exiting postmaster's PID file is in transition, where it had reported an error.
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.35, then ankus upgrade in your solution.