Re: Dropping of indexes with cached PL query plans - Mailing list pgsql-admin

From Tom Lane
Subject Re: Dropping of indexes with cached PL query plans
Date
Msg-id 28733.1140106370@sss.pgh.pa.us
Whole thread Raw
In response to Dropping of indexes with cached PL query plans  (Jerry Sievers <jerry@jerrysievers.com>)
List pgsql-admin
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

pgsql-admin by date:

Previous
From: Jerry Sievers
Date:
Subject: Dropping of indexes with cached PL query plans
Next
From: "Tomeh, Husam"
Date:
Subject: Re: Postgresql performance and tuning questions