Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 2AEF665013E for ; Fri, 17 Oct 2008 07:25:49 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 11611-06 for ; Fri, 17 Oct 2008 07:25:42 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by postgresql.org (Postfix) with ESMTP id 0B410650174 for ; Fri, 17 Oct 2008 07:25:41 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id c7so220973nfi.23 for ; Fri, 17 Oct 2008 03:25:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=oqi8ul4vR4rqVHlFKEylBk37QVqnZNZiEv81ViyMyMc=; b=XMJ80qKBRw6yxKap4qdRbPqUuAHRIcGrZmZ9QeXNkF7HbxEBjIZ5svNzKUWrjx7ET2 6U3DfPEh4Qp10KPDb5YCGE0hbHpSoo5bCJLOuWbbTlVLnOVkTYPXOhqcFYZR59ONQR3I 3qxUG63SVvr6u3twDkIB0yLD80yZks3xsF3HQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=fp7a3oiOqam8BmISODC6uOzFtMegE1fUkL92LO+nACm/gMo/mo6FWaWTXNu/Gxndy4 uehYjETXXqoXepSFA4av7YVdRvhafpJStJjifWF58Xli2/l96TrVjFT3Jy/Rz3TfUQ0t HlyDy69VBvph4UQf6LwN8urQ1cV6OLYgTSoAk= Received: by 10.210.51.10 with SMTP id y10mr462807eby.126.1224239137954; Fri, 17 Oct 2008 03:25:37 -0700 (PDT) Received: by 10.210.19.8 with HTTP; Fri, 17 Oct 2008 03:25:37 -0700 (PDT) Message-ID: <8ea917510810170325s769b3cf1k49b94a829d7620a0@mail.gmail.com> Date: Fri, 17 Oct 2008 12:25:37 +0200 From: "Uwe Bartels" To: pgsql-admin@postgresql.org Subject: refreshing prepared statements after index rebuild MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24034_10928226.1224239137943" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200810/120 X-Sequence-Number: 30576 ------=_Part_24034_10928226.1224239137943 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_24034_10928226.1224239137943 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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
------=_Part_24034_10928226.1224239137943--