Re: Poor performance using CTE - Mailing list pgsql-performance

From Jon Nelson
Subject Re: Poor performance using CTE
Date
Msg-id CAKuK5J1TJE6L9W2Wf3vYYF64y_c+=w=h=Zb+xK1q+ZpBMmLdFA@mail.gmail.com
Whole thread Raw
In response to Re: Poor performance using CTE  (Jeremy Harris <jgh@wizmail.org>)
List pgsql-performance
On Thu, Nov 22, 2012 at 7:42 AM, Jeremy Harris <jgh@wizmail.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


pgsql-performance by date:

Previous
From: Jeremy Harris
Date:
Subject: Re: Poor performance using CTE
Next
From: Vitalii Tymchyshyn
Date:
Subject: Re: SOLVED - RE: Poor performance using CTE