SPI_connect on multi-threaded app - Mailing list pgsql-hackers

From John Williams
Subject SPI_connect on multi-threaded app
Date
Msg-id CABKKsRJs4hkUVZKbS=R91xZTp+n1T0wMRqW69oF-QXp3JO9R+Q@mail.gmail.com
Whole thread
Responses Re: SPI_connect on multi-threaded app
List pgsql-hackers
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?

pgsql-hackers by date:

Previous
From: Christopher Browne
Date:
Subject: Re: Storing the password in .pgpass file in an encrypted format
Next
From: Florian Pflug
Date:
Subject: Re: Uninterruptable regexp_replace in 9.3.1 ?