Re: Automatic function replanning

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Christopher Browne <cbbrowne(at)acm(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Automatic function replanning
Date: 2005-12-18 13:05:27
Message-ID: 200512181305.jBID5Rd29098@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Christopher Browne wrote:
> > Not unless you do something that would cause the planner to make
> > different choices next time. (Such as changing the ANALYZE statistics,
> > perhaps.) The TODO item is OK as stated, it's just talking about
> > mechanism and not the things that might trigger the mechanism.
>
> A mechanism might be to bump up the stats stored for pg_autovacuum,
> which would encourage a table to be re-ANALYZEd.
>
> That may not immediately change ANALYZE statistics, but it's
> something...
>
> Even if there is NO feedback mechanism on statistics, if we know the
> plan was pretty bad, it is surely at least *a* feedback to invalidate
> the plan.

Something has to cause the replan to be better, and that is one
possibility.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Pflug 2005-12-18 14:32:40 Re: Log of CREATE USER statement
Previous Message Christopher Browne 2005-12-18 06:14:21 Re: Automatic function replanning