From: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: PQfinish() in a C multi-threaded application
Date: Fri, 28 Nov 2014 11:59:47 -0700 (MST)
Message-ID: <1417201187711-5828622.post@n5.nabble.com> (raw)
In-Reply-To: <5478A390.3030705@sipibox.fr>
References: <5478A390.3030705@sipibox.fr>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: david.g.johnston@gmail.com
Subject: Re: PQfinish() in a C multi-threaded application
In-Reply-To: <1417201187711-5828622.post@n5.nabble.com>
References: <5478A390.3030705@sipibox.fr> <1417201187711-5828622.post@n5.nabble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox