Re: Automatic function replanning - Mailing list pgsql-hackers

From Lukas Smith
Subject Re: Automatic function replanning
Date
Msg-id 43A49F27.907@pooteeweet.org
Whole thread Raw
In response to Re: Automatic function replanning  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: Automatic function replanning
Re: Automatic function replanning
List 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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: number of loaded/unloaded COPY rows
Next
From: Chris Browne
Date:
Subject: Re: Automatic function replanning