Re: CTE materializing sets?

From: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>
To: Serge Fonville <serge(dot)fonville(at)gmail(dot)com>
Cc: Liam Caffrey <liam(dot)caffrey(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: CTE materializing sets?
Date: 2012-10-09 10:10:24
Message-ID: 5073F810.5060703@ringerc.id.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/09/2012 05:53 PM, Serge Fonville wrote:
> This indeed is a very interesting question.
>
> At http://wiki.postgresql.org/wiki/CTEReadme it seems to suggest that a
> CTE is just rewritten and the resulting query is executed.

CTEs are an optimisation fence, so there's something more than a simple
rewrite.

--
Craig Ringer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Виктор Егоров 2012-10-09 10:31:32 Re: CTE materializing sets?
Previous Message Tomas Vondra 2012-10-09 10:08:55 Re: CTE materializing sets?