Re: More thorough planning for OLAP queries (was: [PATCH] Equivalence Class Filters)

From: David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>
To: Evgeniy Shishkin <itparanoia(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, david(at)fetter(dot)org, Simon Riggs <simon(at)2ndquadrant(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Jim Nasby <Jim(dot)Nasby(at)bluetreble(dot)com>, jgh(at)wizmail(dot)org, Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Subject: Re: More thorough planning for OLAP queries (was: [PATCH] Equivalence Class Filters)
Date: 2015-12-30 21:36:43
Message-ID: CAKJS1f9vh_WseBc-KmN0_hUtN7S=xNcaXoG4Tupb7LS3=f1ksw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 31 December 2015 at 04:39, Evgeniy Shishkin <itparanoia(at)gmail(dot)com> wrote:

>
> > On 30 Dec 2015, at 10:16, David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>
> wrote:
> >
> > A number of ideas were suggested on the other thread about how we might
> go about solving this problem. In [3] Simon talked about perhaps enabling
> extra optimisations when the planner sees that the plan will cost more than
> some given threshold. That's perhaps an option, but may not work well for
> optimisations which must take place very early in planning, for example [4].
> > Another idea which came up was from Evgeniy [5], which was more of a
> request not to do it this way, but never-the-less, the idea was basically
> to add lots of GUCs to enable/disable each extra planner feature.
> >
>
> Well, my idea was to track planning/execution cost in something like
> pg_stat_statements.
> That way we can track actual time, not estimated cost like Simon proposed.
>
>
I like this idea also, but I do see the use for this as more of a guide
which could be used by the DBA to tweak some sort of planner_effort GUCs. I
don't think that the data of pg_stat_statements could be used by the
planner as this is an extension rather than core code.

--
David Rowley http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2015-12-30 22:16:38 Re: Fwd: Avoid endless futile table locks in vacuuming.
Previous Message David Rowley 2015-12-30 21:30:27 Re: More thorough planning for OLAP queries (was: [PATCH] Equivalence Class Filters)