Re: PQfinish() in a C multi-threaded application

From: David G Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: PQfinish() in a C multi-threaded application
Date: 2014-11-28 18:59:47
Message-ID: 1417201187711-5828622.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

François Battail wrote
> Dear List,
>
> I've a (large) multi-threaded application in C using PostgreSQL 9.3 on
> Ubuntu 14.04 LTS x86_64 and it /seems/ that when a thread close a
> connection using PQfinish() all pgsql connections *program wide* are
> closed, here's an overview of this application:

I would imagine that actually showing a small snippet of C code that
exhibits this behavior would make trouble-shooting a lot more viable.

Specifically the means of thread creation and connection creation/provision
in the main program, and the threads, needs to be shown in code and not some
imprecise description.

If you provide that those with actual knowledge of C and libpq may be able
to help.

David J.

--
View this message in context: http://postgresql.nabble.com/PQfinish-in-a-C-multi-threaded-application-tp5828600p5828622.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2014-11-29 00:17:34 Re: BUG #12053: Strange behavior for numeric types with unspecified precision-scale
Previous Message Andres Freund 2014-11-28 18:10:11 Re: BUG #12086: docs: prewarm: When does prewarm happen?