Re: WITH NOT MATERIALIZED and DML CTEs - Mailing list pgsql-hackers

From David Fetter
Subject Re: WITH NOT MATERIALIZED and DML CTEs
Date
Msg-id 20190604004002.GR12249@fetter.org
Whole thread Raw
In response to Re: WITH NOT MATERIALIZED and DML CTEs  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Jun 03, 2019 at 07:33:35PM -0400, Tom Lane wrote:
> David Fetter <david@fetter.org> writes:
> > It might be worth documenting the fact that NOT MATERIALIZED doesn't
> > affect DML CTEs, just as it doesn't affect statements with volatile
> > functions and recursive CTEs.
> 
> We already do:
> 
>     However, if a WITH query is non-recursive and side-effect-free (that
>     is, it is a SELECT containing no volatile functions) then it can be

I guess this part makes it pretty clear that DML isn't part of the
party just yet.

Best,
David.
-- 
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Fix inconsistencies for v12
Next
From: Michael Paquier
Date:
Subject: Re: Table AM callbacks referring to heap in declarations (+typos)