Re: Automatic function replanning

From: Lukas Smith <mls(at)pooteeweet(dot)org>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Subject: Re: Automatic function replanning
Date: 2005-12-17 23:28:39
Message-ID: 43A49F27.907@pooteeweet.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian wrote:

> * Flush cached query plans when the dependent objects change,
> when the cardinality of parameters changes dramatically, or
> when new ANALYZE statistics are available

Wouldn't it also make sense to flush a cached query plan when after
execution it is determined that one or more assumptions that the cached
query plan was based on was found to be off? Like the query plan was
based on the assumption that a particular table would only return a hand
full of rows, but in reality it returned a few thousand.

regards,
Lukas

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Chris Browne 2005-12-18 01:45:59 Re: Automatic function replanning
Previous Message Tom Lane 2005-12-17 22:11:14 Re: number of loaded/unloaded COPY rows