From: | Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> |
---|---|
To: | Craig Ringer <craig(at)2ndquadrant(dot)com> |
Cc: | cedric(at)2ndquadrant(dot)com, pgsql-performance(at)postgresql(dot)org, Craig James <cjames(at)emolecules(dot)com>, Kevin Grittner <kgrittn(at)mail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Claudio Freire <klaussfreire(at)gmail(dot)com>, Merlin Moncure <mmoncure(at)gmail(dot)com>, David Greco <David_Greco(at)harte-hanks(dot)com> |
Subject: | Re: Hints (was Poor performance using CTE) |
Date: | 2012-11-28 02:26:20 |
Message-ID: | CAOR=d=0p+c8Ttwjo56CCU-kzxLZChpHkKg8C5K990krVHit-7w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Tue, Nov 27, 2012 at 7:17 PM, Craig Ringer <craig(at)2ndquadrant(dot)com> wrote:
> On 27/11/2012 3:42 PM, Scott Marlowe wrote:
>
>> Here here! PostgreSQL is well known for its extensibility and this is
>> the perfect place for hints.
>
> I agree with the sentiment and your concerns. However, this doesn't solve
> the CTE problem.
>
> Some people are relying on the planner's inability to push conditions into /
> pull conditions out of CTEs, and otherwise re-arrange them. If support for
> optimising into eligible CTEs (ie CTE terms that contain only SELECT or
> VALUES and call no VOLATILE functions) then these applications will
> potentially encounter serious performance regressions.
>
> Should this feature never be added to Pg, making it different and
> incompatible with other DBs that implement CTE optimisation, just because
> some people are using it for a hacky hint like OFFSET 0?
I'm strictly talking about any hinting mechanism being added being an
extension. Fixing the planner so that optimizations can get cross the
CTE boundary seems the domain of back end hackers, not extensions.
From | Date | Subject | |
---|---|---|---|
Next Message | Gavin Flower | 2012-11-28 02:34:12 | Re: Hints (was Poor performance using CTE) |
Previous Message | Craig Ringer | 2012-11-28 02:17:36 | Re: Hints (was Poor performance using CTE) |