Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 70B729FA412 for ; Tue, 2 Oct 2007 17:05:18 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 18759-06 for ; Tue, 2 Oct 2007 17:05:06 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by postgresql.org (Postfix) with ESMTP id 483D49FA119 for ; Tue, 2 Oct 2007 17:05:08 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id f5so2781183nfh for ; Tue, 02 Oct 2007 13:05:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=COLOIMw0lQSBLWQacOVGm4p0mGNmIqWoTTdf30Zp5DA=; b=jwUWdi0JDiWamgleSjI+0tvNWfEYqfbU5zNH9CSZsPXadg+GwPpzm1XaLHJ35wmQNGS191iERjWWKI6jzB4Y8Z6iWn70+RUZgZ4r+VQyRFZOb2HWO5upiDXHhWs0da7Lbq4qw//4MGQzVuSW13/j9aER38kigzfQ7HVeFtf/aFU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=e6Udw6TCFjyUMQADXGov+MmxqB8wg7+/DVAopkwnd76zV0CAJYR4WXVOwXSWIXonRilJDOOgJhqBDK5m+sYmck3UMZOOr9vLb9jOH3Lj+oWbyCtvQsfjBd5LJNAvzfRerX/z31hg6VqRSutvVtUENc2VpxbZ4SkfKLdtFrPM2zY= Received: by 10.78.177.3 with SMTP id z3mr8416003hue.1191355505910; Tue, 02 Oct 2007 13:05:05 -0700 (PDT) Received: by 10.78.145.6 with HTTP; Tue, 2 Oct 2007 13:05:05 -0700 (PDT) Message-ID: Date: Tue, 2 Oct 2007 23:05:05 +0300 From: "Marko Kreen" To: depesz@depesz.com Subject: Re: Prepared Statements vs. pgbouncer Cc: "Tom Lane" , pg@fastcrypt.com, "Josh Berkus" , "Heikki Linnakangas" , lindner@inuus.com, "Oliver Jowett" , pgsql-jdbc@postgresql.org, PgBouncer In-Reply-To: <20071002123838.GA1462@depesz.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <24584.1191033096@sss.pgh.pa.us> <46FE3B1A.7020603@agliodbs.com> <46FED7FA.6060309@opencloud.com> <46FFC314.5080205@agliodbs.com> <47000C2E.8030409@opencloud.com> <4700B21C.1000008@enterprisedb.com> <47013A0E.6080607@agliodbs.com> <47013E0F.8050508@fastcrypt.com> <19675.1191264250@sss.pgh.pa.us> <20071002123838.GA1462@depesz.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/37 X-Sequence-Number: 17609 On 10/2/07, hubert depesz lubaczewski wrote: > On Mon, Oct 01, 2007 at 02:44:10PM -0400, Tom Lane wrote: > > Dave Cramer writes: > > > Josh Berkus wrote: > > >> So where is it going to be easier to fix this ... pgBouncer, or pg-JDBC? > > > pgBouncer is broken so I'd fix it. > > It's an enormous mistake to imagine that prepared statements are the > > only issue. What about GUC settings and temp tables, to mention a > > couple other bits of per-session state? > > i think that calling it broken is "a bit" far fetched. Thanks, I think so too. Considering all the other things that are broken by transaction pooling, "it would be cute to have it" is the best I can think of. I did a quick feature matrix of things broken by pooler in general: https://developer.skype.com/SkypeGarage/DbProjects/PgBouncer Seems like the protocol-level plans is only one of them that _could_ be worked around in pooler. Rest will stay broken. Coincidentally, the prepared plans happens to be the pet-feature of JDBC, as I understand... So, personally I don't have time to work on the feature, but I have thought a draft design that could somewhat work in the context of pgbouncer. If anyone is interested to work on that, contact me. -- marko