Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 7ACBC9F926A for ; Thu, 4 Oct 2007 13:19:00 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 96990-08 for ; Thu, 4 Oct 2007 13:18:56 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by postgresql.org (Postfix) with ESMTP id 191EA9F936F for ; Thu, 4 Oct 2007 13:18:55 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id j3so385301ugf for ; Thu, 04 Oct 2007 09:18:53 -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=2iCz/7FvgxUkk4ltYEQVcFhrJRB6itUMoaqmvDPVI0M=; b=VCeugFrm4+vSnJnE5Je2H+Hju2n8Adeq84Bb1uCjkgHIAbHvBTatsH/DABXX54VER8kFU3KipiOuByhyPaPPTFECkcv/3bo3CFpbQJVOkev3qUAZ2Btd+e4P0RPN5tmQNVG4BD1XE8fJfJLPdQsl/zhsDW/iO1u5o9C7XXAgBmA= 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=tnvfL+rWuxYSH6hZG83bHTS6spq1IPeyZBETsDDWrPEfmEIckBXpYkxx5q6de4W7yhuMTRPzQgZkPnSA/jMSZ1oIOTo+BTEQRsuaH1uhisHOg5VdZmDKAr4Hs8YrW8oSpk9mF5A9h+VJvTwS03Hs/x7+YoWYZHuAFcM+rPp5amM= Received: by 10.78.142.14 with SMTP id p14mr3586976hud.1191514733419; Thu, 04 Oct 2007 09:18:53 -0700 (PDT) Received: by 10.78.145.6 with HTTP; Thu, 4 Oct 2007 09:18:53 -0700 (PDT) Message-ID: Date: Thu, 4 Oct 2007 19:18:53 +0300 From: "Marko Kreen" To: "Josh Berkus" Subject: Re: [Pgbouncer-general] Prepared Statements vs. pgbouncer Cc: pgsql-jdbc@postgresql.org, PgBouncer In-Reply-To: <200710040846.06394.josh@agliodbs.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> <200710021313.56931.josh@agliodbs.com> <200710040846.06394.josh@agliodbs.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/46 X-Sequence-Number: 17618 On 10/4/07, Josh Berkus wrote: > > Yes, then you don't need any support from pgbouncer, only > > a way to drop all prepared plans on session end, which unfortunately > > is available only in 8.3 - DEALLOCATE ALL / DISCARD ALL. > > Oh. So on 8.2, this is still an issue becuase the plans will persist beyond > JDBC dropping the connection? Yes. JDBC could avoid it by carefully dropping all plans before closing the connection. > Also, are you saying that on 8.3 the client > code will have to manually issue DEALLOCATE ALL on session end? No, it is pgbouncer's job. Set server_reset_query to "DISCARD ALL". Although that happens to be available only in 1.1 branch of pgbouncer, which should be released any day now. In 1.0 it can be done by server_check_query = "..", server_check_delay = 0 but that makes it unusable for it's intended purpose. -- marko