Re: generalizing the planner knobs - Mailing list pgsql-hackers

From Tom Lane
Subject Re: generalizing the planner knobs
Date
Msg-id 12469.1133752647@sss.pgh.pa.us
Whole thread Raw
In response to Re: generalizing the planner knobs  (Greg Stark <gsstark@mit.edu>)
Responses Re: generalizing the planner knobs
Re: generalizing the planner knobs
List pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> Plan stability is also an important feature, especially for OLTP
> systems which have hard real-time requirements. OLTP systems typically
> don't care about getting the "best" plan for a query, only a plan that
> is "good enough".

> "Good enough" means it can keep up with the rate of incoming requests; it
> doesn't matter whether it keeps up with 10% headroom or 20% headroom. But if
> one incoming query even one in a thousand takes 1000% of the time available
> then the entire system risks falling down.

Is it worth pointing out that using the same plan all the time is *no*
recipe for guaranteeing response time?  There is no such thing as a plan
that is good for every case --- outlying data values can make a
usually-good plan blow out your performance guarantee anyway.  Disabling
the planner is just a recipe for ensuring that that will happen, IMHO.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Reducing relation locking overhead
Next
From: Gavin Sherry
Date:
Subject: Re: Upcoming PG re-releases