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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-novice by date

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