On Mon, Jun 03, 2019 at 07:33:35PM -0400, Tom Lane wrote: > David Fetter <da...@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