Skip site navigation (1) Skip section navigation (2)

refreshing prepared statements after index rebuild

From: "Uwe Bartels" <uwe(dot)bartels(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: refreshing prepared statements after index rebuild
Date: 2008-10-17 10:25:37
Message-ID: 8ea917510810170325s769b3cf1k49b94a829d7620a0@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-admin
Hi,

we have a corrupt index (size=20GB) and are about to create a new index
parallel to the corrupted index.
the index is running on a heavyly used online database with oltp character.

The question is what's the softest way to switch to the new index. there are
several application servers, webapplications and other daemons which use
prepared statements on the table associated with that index.

- just dropping the corrupt index results in errors returned while executing
the existing prepared statements
- 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

Is there a way to centrally refresh the existing prepared statements?

any hint that results in a soft switch without disturbance of the
application is appreciated.

best regards,
Uwe

Responses

pgsql-admin by date

Next:From: Tom LaneDate: 2008-10-17 12:10:18
Subject: Re: refreshing prepared statements after index rebuild
Previous:From: Tim Bruce - PostgresDate: 2008-10-16 14:29:14
Subject: Re: Upgrade in same major version

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group