Repository navigation
Ankus 0.2.38 keeps each PgNativeCallback call's 2.8 KB error buffer on the dispatcher's stack. Up to 0.2.37 every call allocated it from TopMemoryContext, and PostgreSQL built with assertions, as ankus init builds it, fills each allocation through RANDOMIZE_ALLOCATED_MEMORY, so there the buffer cost about 26,000 instructions a call. Under callgrind on PostgreSQL 18.7 built that way, the hooks sample's executor-run hook went from 28,083 to 1,491 instructions a statement, and on the PGDG 18 release package from 1,490 to 1,425.
The runtime and compiler packages stay at 10.0.15-ankus.4 and 11.0.0-ankus.4.
To update, run dotnet tool update --global Ankus.Tool --version 0.2.38, then ankus upgrade in your solution.