I'm writing a pgsql extension in C, which is multithreaded. The SPI connection is global, so do I have to implement a lock to make sql queries in each thread, or can I make a connection on a per-thread basis?
- [HACKERS] SPI_connect on multi-threaded app John Williams
- Re: [HACKERS] SPI_connect on multi-threaded app Florian Pflug