Repository navigation
Ankus 0.2.37
Ankus 0.2.37 makes each PgNativeCallback call cheaper. A hook cost about 0.44 µs a call, so an extension with four executor hooks added close to 2 µs to every statement. An executor-run hook that chains to standard_ExecutorRun now costs about 0.15 µs on a PostgreSQL 18.7 release build on Linux x64, and under callgrind 1,540 instructions where it took 5,450.
The dispatcher no longer zeroes its 2.8 KB error buffer on every call. It clears only the header and field slots, and releases diagnostics only after a call fails. Each generated dispatcher caches the provider that accepted its binding, so it checks the binding again only when the provider changes or something would refuse the call.
The runtime and compiler packages move to 10.0.15-ankus.4 and 11.0.0-ankus.4. Their fork commits record in the child fork handler that a forked process isn't the fork host, so entering and leaving a managed callback reads a flag. glibc doesn't cache the process ID, and a library that PostgreSQL preloads paid two getpid calls on every hook and callback.
To update, run dotnet tool update --global Ankus.Tool --version 0.2.37, then ankus upgrade in your solution.