Re: Poor performance using CTE

From: Jon Nelson <jnelson+pgsql(at)jamponi(dot)net>
To: Jeremy Harris <jgh(at)wizmail(dot)org>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Poor performance using CTE
Date: 2012-11-22 14:23:57
Message-ID: CAKuK5J1TJE6L9W2Wf3vYYF64y_c+=w=h=Zb+xK1q+ZpBMmLdFA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Thu, Nov 22, 2012 at 7:42 AM, Jeremy Harris <jgh(at)wizmail(dot)org> wrote:
> On 22/11/2012 00:08, Craig Ringer wrote:
>>
>> WITH
>> FENCE foo AS (SELECT ...),
>> bar AS (SELECT ...)
>> SELECT * FROM bar;
>>
>> Are we fencing just foo? Or all expressions?
>>
>
> WITH foo AS (FENCED SELECT ...),
> bar AS (SELECT ...),
> SELECT ... ;

I would much rather see 'MATERIALIZE' instead of 'FENCED', unless the
by the latter you mean to forbid *all* optimizations, whereas with the
latter the meaning is pretty clear.

--
Jon

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Vitalii Tymchyshyn 2012-11-22 17:37:21 Re: SOLVED - RE: Poor performance using CTE
Previous Message Jeremy Harris 2012-11-22 13:42:33 Re: Poor performance using CTE