Re: CTE optimization fence on the todo list? - Mailing list pgsql-hackers

From Dimitri Fontaine
Subject Re: CTE optimization fence on the todo list?
Date
Msg-id m2vceuuwz1.fsf@2ndQuadrant.fr
Whole thread Raw
In response to Re: CTE optimization fence on the todo list?  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-hackers
Merlin Moncure <mmoncure@gmail.com> writes:
> I'm wondering if there are any technical/standards constraints that
> are behind the fencing behavior.  If there aren't any, maybe an opt-in

The fencing is per standard, and very useful when used in wCTEs.

> keyword might do the trick -- WITH UNBOXED foo AS (..)?

I would paint your proposal WITH VIEW foo AS (), which would make the
behaviour obvious I think.

Regards,
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: embedded list v3
Next
From: Misa Simic
Date:
Subject: Re: is JSON really "a type" (Re: data to json enhancements)