From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Elvis Pranskevichus <elprans(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: WITH NOT MATERIALIZED and DML CTEs |
Date: | 2019-06-04 00:40:02 |
Message-ID: | 20190604004002.GR12249@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Jun 03, 2019 at 07:33:35PM -0400, Tom Lane wrote:
> David Fetter <david(at)fetter(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2019-06-04 00:50:49 | Re: Table AM callbacks referring to heap in declarations (+typos) |
Previous Message | Amit Kapila | 2019-06-04 00:26:57 | Re: Fix inconsistencies for v12 |