SPI_connect on multi-threaded app

From: John Williams <jdwilliams1982(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: SPI_connect on multi-threaded app
Date: 2014-02-21 12:44:14
Message-ID: CABKKsRJs4hkUVZKbS=R91xZTp+n1T0wMRqW69oF-QXp3JO9R+Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message firoz e v 2014-02-21 12:49:26 Storing the password in .pgpass file in an encrypted format
Previous Message Christian Kruse 2014-02-21 12:40:59 Re: Patch: show xid and xmin in pg_stat_activity and pg_stat_replication