Re: Dropping of indexes with cached PL query plans

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jerry Sievers <jerry(at)jerrysievers(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Dropping of indexes with cached PL query plans
Date: 2006-02-16 16:12:50
Message-ID: 28733.1140106370@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Jerry Sievers <jerry(at)jerrysievers(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tomeh, Husam 2006-02-16 16:39:30 Re: Postgresql performance and tuning questions
Previous Message Jerry Sievers 2006-02-16 15:36:01 Dropping of indexes with cached PL query plans