Re: Prepared statement does not exist

Lists: pgsql-performance
From: Nimesh Satam <nimesh(dot)zedo(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org, Nimesh Satam <nimesh(dot)satam(at)gmail(dot)com>
Subject: Prepared statement does not exist
Date: 2009-03-19 11:32:07
Message-ID: 965aa3ed0903190432i77ca9b39v733663f92ef3e2d0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

Hi,

I am not sure if sending this to the right place. I did try to get the
answer from pgpool mailing list but no luck . Would appreciate if someone
can help here.

We are receving the following error in the postgres database logs:

2009-03-19 02:14:20 PDT [2547]: [79-1] LOG: duration: 0.039 ms statement:
RESET ALL
2009-03-19 02:14:20 PDT [2547]: [80-1] LOG: duration: 0.027 ms statement:
SET SESSION AUTHORIZATION DEFAULT
2009-03-19 02:14:20 PDT [2547]: [81-1] ERROR: 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: 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?

Postgres version: 8.3.3
pgpool II: 2.0.1

Thanks & Regards,
Nimesh.


From: Glyn Astill <glynastill(at)yahoo(dot)co(dot)uk>
To: pgsql-performance(at)postgresql(dot)org, Nimesh Satam <nimesh(dot)satam(at)gmail(dot)com>, Nimesh Satam <nimesh(dot)zedo(at)gmail(dot)com>
Subject: Re: Prepared statement does not exist
Date: 2009-03-19 11:37:11
Message-ID: 407434.55939.qm@web23607.mail.ird.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

--- On Thu, 19/3/09, Nimesh Satam <nimesh(dot)zedo(at)gmail(dot)com> wrote:
>
> We are receving the following error in the postgres
> database logs:
>
> 2009-03-19 02:14:20 PDT [2547]: [79-1] LOG: duration:
> 0.039 ms statement:
> RESET ALL
> 2009-03-19 02:14:20 PDT [2547]: [80-1] LOG: duration:
> 0.027 ms statement:
> SET SESSION AUTHORIZATION DEFAULT
> 2009-03-19 02:14:20 PDT [2547]: [81-1] ERROR: 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: 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.


From: Nimesh Satam <nimesh(dot)zedo(at)gmail(dot)com>
To: glynastill(at)yahoo(dot)co(dot)uk
Cc: pgsql-performance(at)postgresql(dot)org, Nimesh Satam <nimesh(dot)satam(at)gmail(dot)com>
Subject: Re: Prepared statement does not exist
Date: 2009-03-20 09:03:58
Message-ID: 965aa3ed0903200203w75bd3b96ofdf5b080dbbdd4c2@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

Glyn Astill,

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.

Regards,
Nimesh.

On Thu, Mar 19, 2009 at 5:07 PM, Glyn Astill <glynastill(at)yahoo(dot)co(dot)uk> wrote:

>
>
>
>
> --- On Thu, 19/3/09, Nimesh Satam <nimesh(dot)zedo(at)gmail(dot)com> wrote:
> >
> > We are receving the following error in the postgres
> > database logs:
> >
> > 2009-03-19 02:14:20 PDT [2547]: [79-1] LOG: duration:
> > 0.039 ms statement:
> > RESET ALL
> > 2009-03-19 02:14:20 PDT [2547]: [80-1] LOG: duration:
> > 0.027 ms statement:
> > SET SESSION AUTHORIZATION DEFAULT
> > 2009-03-19 02:14:20 PDT [2547]: [81-1] ERROR: 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: 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.
>
>
>
>


From: Glyn Astill <glynastill(at)yahoo(dot)co(dot)uk>
To: Nimesh Satam <nimesh(dot)zedo(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org, Nimesh Satam <nimesh(dot)satam(at)gmail(dot)com>
Subject: Re: Prepared statement does not exist
Date: 2009-03-20 12:02:01
Message-ID: 48572.83482.qm@web23605.mail.ird.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance


--- On Fri, 20/3/09, Nimesh Satam <nimesh(dot)zedo(at)gmail(dot)com> wrote:

> From: Nimesh Satam <nimesh(dot)zedo(at)gmail(dot)com>
> > > We are receving the following error in the
> postgres
> > > database logs:
> > >
> > > 2009-03-19 02:14:20 PDT [2547]: [79-1] LOG:
> duration:
> > > 0.039 ms statement:
> > > RESET ALL
> > > 2009-03-19 02:14:20 PDT [2547]: [80-1] LOG:
> duration:
> > > 0.027 ms statement:
> > > SET SESSION AUTHORIZATION DEFAULT
> > > 2009-03-19 02:14:20 PDT [2547]: [81-1] ERROR:
> 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:
> 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.
>
> 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 after the reset all then. Either way, this is not relevent to the performance list, send it over to the pgpool list... and tell them your pgpool version number too - it may be a fixed bug.