pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jerry Sievers <jerry@jerrysievers.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Dropping of indexes with cached PL query plans
Date: Thu, 16 Feb 2006 11:12:50 -0500
Message-ID: <28733.1140106370@sss.pgh.pa.us> (raw)
In-Reply-To: <m3ek239uzi.fsf@prod01.jerrysievers.com>
References: <m3ek239uzi.fsf@prod01.jerrysievers.com>

Jerry Sievers <jerry@jerrysievers.com> writes:
> Any of these connections that may have previously executed PL
> functions which planned an index lookup are now going to fault if same
> index goes away.

> Had wondered if a postmaster 'reload' would elicit a recompiling of
> func query plans (did *not* see this in the docs but was hopeful...).

Starting a fresh session (database connection) is sufficient, you need
not bounce the postmaster as such.

We are looking at making replanning happen automatically after a schema
change; I'm hopeful that that gets done for 8.2.

			regards, tom lane



view thread (3+ messages)  latest in thread

Message-ID: <28733.1140106370@sss.pgh.pa.us>
Permalink:  ../28733.1140106370@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28733.1140106370@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jerry@jerrysievers.com
  Subject: Re: Dropping of indexes with cached PL query plans
  In-Reply-To: <28733.1140106370@sss.pgh.pa.us>
  References: <m3ek239uzi.fsf@prod01.jerrysievers.com> <28733.1140106370@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox