Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id A773A1337B9F for ; Fri, 15 Oct 2010 11:23:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 21178-06 for ; Fri, 15 Oct 2010 14:23:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id A0591133729E for ; Fri, 15 Oct 2010 11:23:30 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o9FENSLi019980; Fri, 15 Oct 2010 10:23:28 -0400 (EDT) To: =?UTF-8?Q?Rados=C5=82aw_Smogura?= cc: Magnus Hagander , David Fetter , Kevin Grittner , PG Hackers , PostgreSQL JDBC List , robertmhaas@gmail.com Subject: Re: [JDBC] Support for JDBC setQueryTimeout, et al. In-reply-to: References: <20101011064615.GJ29408@fetter.org> <4CB2CADC020000250003676B@gw.wicourts.gov> <88dcb3988805ede17af4a460ad251534@smogura-softworks.eu> <20101012141439.GA29627@fetter.org> <4CB43A4C0200002500036826@gw.wicourts.gov> <20101012155531.GB29627@fetter.org> <528f31015d6bf68650646b9b4ba71a10@smogura-softworks.eu> Comments: In-reply-to =?UTF-8?Q?Rados=C5=82aw_Smogura?= message dated "Fri, 15 Oct 2010 04:11:44 -0500" Date: Fri, 15 Oct 2010 10:23:27 -0400 Message-ID: <19979.1287152607@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/1023 X-Sequence-Number: 172063 =?UTF-8?Q?Rados=C5=82aw_Smogura?= writes: > On Fri, 15 Oct 2010 10:37:05 +0200, Magnus Hagander > wrote: >>> But... connection pooler will not send RESET ALL in some situations, >> To me, that sounds like a bug in the connection pooler. It is only >> safe under quite limited circumstances. > It's hard to say this is bug. No it isn't. What you've described is a broken, unsafe, insecure pooler that could not under any circumstances be recommended for general purpose use. It might be okay if you trust all the clients to cooperate completely, and to not have any bugs that might cause them to release a connection while it's in a non-default state. regards, tom lane