Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XuQlm-00011g-2L for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Nov 2014 18:59:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XuQll-00008o-D3 for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Nov 2014 18:59:53 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XuQlk-00008h-Bk for pgsql-bugs@postgresql.org; Fri, 28 Nov 2014 18:59:52 +0000 Received: from [162.253.133.43] (helo=mwork.nabble.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XuQlg-0004fg-VW for pgsql-bugs@postgresql.org; Fri, 28 Nov 2014 18:59:50 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id C1275B91B10 for ; Fri, 28 Nov 2014 10:59:47 -0800 (PST) Date: Fri, 28 Nov 2014 11:59:47 -0700 (MST) From: David G Johnston To: pgsql-bugs@postgresql.org Message-ID: <1417201187711-5828622.post@n5.nabble.com> In-Reply-To: <5478A390.3030705@sipibox.fr> References: <5478A390.3030705@sipibox.fr> Subject: Re: PQfinish() in a C multi-threaded application MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 162.253.133.43 (failed) X-Pg-Spam-Score: 1.9 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Fran=C3=A7ois Battail wrote > Dear List, >=20 > I've a (large) multi-threaded application in C using PostgreSQL 9.3 on=20 > Ubuntu 14.04 LTS x86_64 and it /seems/ that when a thread close a=20 > connection using PQfinish() all pgsql connections *program wide* are=20 > 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. --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs