Skip site navigation (1) Skip section navigation (2)

Re: threads question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Wright, George" <George(dot)Wright(at)infimatic(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: threads question
Date: 2008-10-08 22:34:11
Message-ID: 551.1223505251@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
"Wright, George" <George(dot)Wright(at)infimatic(dot)com> writes:
> Can I open a connection to a PostgreSQL database from some C/C++ code
> then share the connection handle with multiple threads in the C/C++
> environment?

Sure, but it's up to you to prevent the threads from trying to do more
than one thing at a time with the connection.

			regards, tom lane

In response to

pgsql-novice by date

Next:From: Panagiotis KontaxisDate: 2008-10-09 16:59:43
Subject: Connecting to schema problems
Previous:From: Mark RobertsDate: 2008-10-08 21:47:07
Subject: Re: PostgreSQL for Data Warehouse

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group