I'm writing a pgsql extension in C, which is multithreaded. The SPIconnection is global, so do I have to implement a lock to make sql queriesin each thread, or can I make a connection on a per-thread basis?