Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gogm8-0001A9-KF for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Jan 2019 03:42:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gogm6-0006sg-A0 for pgsql-hackers@arkaria.postgresql.org; Wed, 30 Jan 2019 03:42:54 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gogm5-0006sV-Vp for pgsql-hackers@lists.postgresql.org; Wed, 30 Jan 2019 03:42:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gogm2-0005x7-Tt for pgsql-hackers@postgresql.org; Wed, 30 Jan 2019 03:42:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x0U3gYdE004191; Tue, 29 Jan 2019 22:42:34 -0500 From: Tom Lane To: David Fetter cc: Michael Paquier , Peter Eisentraut , Robert Haas , Andreas Karlsson , Andres Freund , Thomas Munro , Andrew Gierth , Pg Hackers Subject: Re: Early WIP/PoC for inlining CTEs In-reply-to: <20190130023512.GX12076@fetter.org> References: <00818be9-2f63-f584-efcd-d97ee0662905@proxel.se> <5715d93e-6ebc-be17-c2c3-56a873100a38@proxel.se> <29576.1548084476@sss.pgh.pa.us> <12408.1548707732@sss.pgh.pa.us> <32184.1548713132@sss.pgh.pa.us> <20190129045158.GD3121@paquier.xyz> <17787.1548791564@sss.pgh.pa.us> <20190130023512.GX12076@fetter.org> Comments: In-reply-to David Fetter message dated "Wed, 30 Jan 2019 03:35:13 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4189.1548819754.1@sss.pgh.pa.us> Date: Tue, 29 Jan 2019 22:42:34 -0500 Message-ID: <4190.1548819754@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David Fetter writes: > On Tue, Jan 29, 2019 at 02:52:44PM -0500, Tom Lane wrote: >> I propose that we implement and document this as >> WITH ctename AS [ MATERIALIZE { ON | OFF } ] ( query ) > I think this would be better with parentheses like this: > WITH ctename [ ( MATERIALIZE { ON | OFF } ) ] AS ( query ) [, ... ] I take it you haven't actually been reading this thread. regards, tom lane