Hi! I agree with Heikki on most topics and especially the one he recommended to publish your extension on GitHub, this tool is very promising for highly loaded systems, you will get a lot of feedback very soon.
I'm curious about SpinLock - it is recommended for very short operations, taking up to several instructions, and docs say that for longer ones it will be too expensive, and recommends using LWLock. Why have you chosen SpinLock? Does it have some benefits here? Thank you! PS: process_query_desc function has trace_context argument that is neither used nor passed anywhere. -- Regards, Nikita Malakhov Postgres Professional The Russian Postgres Company https://postgrespro.ru/