Re: how to invalidate a stored procedure's plan?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ben Chobot <bench(at)silentmedia(dot)com>
Cc: pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: how to invalidate a stored procedure's plan?
Date: 2010-04-24 01:00:01
Message-ID: 21813.1272070801@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ben Chobot <bench(at)silentmedia(dot)com> writes:
> I have a procedure that queries a table. This should be fast because of an index, but some index bloat has caused the index to become expensive, and so the procedure has cached a plan that uses a full table scan. I've since fixed the index bloat, but the procedure still seems to be doing full table scans. Is there a non-disruptive way to invalidate the cached plan for that procedure globally?

What PG version? In 8.3 and up an ANALYZE on any of the tables
mentioned in the problem query should suffice.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ben Chobot 2010-04-24 01:06:39 Re: how to invalidate a stored procedure's plan?
Previous Message Ben Chobot 2010-04-24 00:52:06 how to invalidate a stored procedure's plan?