Re: refreshing prepared statements after index rebuild - Mailing list pgsql-admin

From Tom Lane
Subject Re: refreshing prepared statements after index rebuild
Date
Msg-id 13972.1224245418@sss.pgh.pa.us
Whole thread Raw
In response to refreshing prepared statements after index rebuild  ("Uwe Bartels" <uwe.bartels@gmail.com>)
List pgsql-admin
"Uwe Bartels" <uwe.bartels@gmail.com> writes:
> - just dropping the corrupt index results in errors returned while executing
> the existing prepared statements

If you were running 8.3 it would Just Work, so I take it you're not.

> - restart of the postgres server works of course, but ... you know. that's
> the last solution.
> - i cannot currently cycle all jdbc connection pools, and bouncing the
> app-servers & daemons does heavier damage than cycling the database

I'm afraid those are your only options :-( --- pre 8.3, there's no way
short of starting fresh sessions to get rid of cached plans for prepared
statements.

            regards, tom lane

pgsql-admin by date:

Previous
From: "Uwe Bartels"
Date:
Subject: refreshing prepared statements after index rebuild
Next
From: Isabella Ghiurea
Date:
Subject: PostgresSQL DBA books