Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 35D856342DA for ; Fri, 20 Mar 2009 09:08:54 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 43312-03 for ; Fri, 20 Mar 2009 09:08:42 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from web23605.mail.ird.yahoo.com (web23605.mail.ird.yahoo.com [87.248.115.48]) by mail.postgresql.org (Postfix) with SMTP id 22FA76349E1 for ; Fri, 20 Mar 2009 09:08:46 -0300 (ADT) Received: (qmail 83672 invoked by uid 60001); 20 Mar 2009 12:02:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s1024; t=1237550522; bh=MIyhRG79dkZQ3c3KFZyzsVhFqK3TzrX2KOXlYUGR0IQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=T+Wb0HStcRKAiIMblEE/y/7u2VXpTNVP0yn2lpIZWGoShsZw0RQF33PbAEG3uizE8iVKQbdbvqDr0LfyZ1tbRzWVAWSDKnPbIT1eqlB8BAN2G8DfY+FYB2JXfvUABHLokvCqxwxSnaCYyeGJYl+wGqhMg92jj60Y8PxS8m7Gx1k= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=VbYOLFedrvXwfQ5CXXyWTleZasA1tnJagxs/iitfIy925zzXHU3Z7ryLpyeFFbQGiPCJTU8ElslphvFRew941/gmQPQbs49ufPoAeOglWvGgR+ZQMmYlUcN7ACsfXh4fnCGLu+DepWCOEoJxQGnqFFH72L/yE+3rkGEgeD1V+ks=; Message-ID: <48572.83482.qm@web23605.mail.ird.yahoo.com> X-YMail-OSG: RlYDv34VM1mctql2WIU2Q8z3Vy0uTqzekhD9rdCcMDtjqMB1ABVPWmfJProD.iZyXoORKqgOTW8FjKx_zaTcgKbmaUiwxN1CBCNa87FnvnhQ.Y8yTidrNhk.y5ZtfnUlyH9Ein73h.29Bz7CH0caUOJ8n21Os3iHQ0I8oQRAt7GyVICXl6Qr4uVPFqSGrwktSMIvRub3qbGPkso- Received: from [213.83.65.106] by web23605.mail.ird.yahoo.com via HTTP; Fri, 20 Mar 2009 12:02:01 GMT X-Mailer: YahooMailWebService/0.7.289.1 Date: Fri, 20 Mar 2009 12:02:01 +0000 (GMT) From: Glyn Astill Reply-To: glynastill@yahoo.co.uk Subject: Re: Prepared statement does not exist To: Nimesh Satam Cc: pgsql-performance@postgresql.org, Nimesh Satam In-Reply-To: <965aa3ed0903200203w75bd3b96ofdf5b080dbbdd4c2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.107 tagged_above=0 required=5 tests=AWL=0.107 X-Spam-Level: X-Archive-Number: 200903/287 X-Sequence-Number: 33209 --- On Fri, 20/3/09, Nimesh Satam wrote: > From: Nimesh Satam > > > We are receving the following error in the > postgres > > > database logs: > > > > > > 2009-03-19 02:14:20 PDT [2547]: [79-1] LOG:=20 > duration: > > > 0.039 ms statement: > > > RESET ALL > > > 2009-03-19 02:14:20 PDT [2547]: [80-1] LOG:=20 > duration: > > > 0.027 ms statement: > > > SET SESSION AUTHORIZATION DEFAULT > > > 2009-03-19 02:14:20 PDT [2547]: [81-1] ERROR:=20 > prepared > > > statement "S_1" does > > > not exist > > > 2009-03-19 02:14:20 PDT [2547]: [82-1] STATEMENT: > > > DEALLOCATE "S_1" > > > 2009-03-19 02:14:20 PDT [2547]: [83-1] ERROR:=20 > prepared > > > statement "S_4" does > > > not exist > > > 2009-03-19 02:14:20 PDT [2547]: [84-1] STATEMENT: > > > DEALLOCATE "S_4" > > > > > > We receive this errors when we start connecting > the java > > > application > > > thorugh pgpool. What causes this problem and how > can it be > > > avoided? > > > > Looks like your app is dissconnecting from pgpool > which is causing pgpool > > to send the RESET ALL, this will deallocate the > prepared statement. Then the > > app is reconnecting to pgpool again and expecting the > prepared statement to > > still be available, which it will not be. >=20 > Thank for your reply. But can you confirm on this? As what > I see from > the logs, its pgpool which is trying to deallocate the > prepared > statement and not the application. The application just > disconnects > and not tyring to use the same connection. There is the possibility that it's pgpool sending the deallocate in error a= fter the reset all then. Either way, this is not relevent to the performanc= e list, send it over to the pgpool list... and tell them your pgpool versio= n number too - it may be a fixed bug.=0A=0A=0A