Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiMLM-0001mX-0a for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Jul 2018 16:08:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fiMLJ-0004gR-ST for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Jul 2018 16:08:49 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiMLJ-0004gJ-Hz for pgsql-hackers@lists.postgresql.org; Wed, 25 Jul 2018 16:08:49 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fiMLH-0005X2-2b for pgsql-hackers@postgresql.org; Wed, 25 Jul 2018 16:08:48 +0000 Received: from [192.168.127.1] (port=19996 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1fiMLE-000F2x-2X; Wed, 25 Jul 2018 16:08:44 +0000 Received: from [127.0.0.1] (port=29199 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1fiMLD-000JYs-Cu; Wed, 25 Jul 2018 16:08:43 +0000 From: Andrew Gierth To: Nico Williams Cc: David Fetter , pgsql-hackers@postgresql.org Subject: Re: Early WIP/PoC for inlining CTEs In-Reply-To: <20180725153205.GM5695@localhost> (Nico Williams's message of "Wed, 25 Jul 2018 10:32:06 -0500") Message-ID: <877eljfhrx.fsf@news-spur.riddles.org.uk> References: <87sh48ffhb.fsf@news-spur.riddles.org.uk> <20180725054236.GB17411@fetter.org> <20180725153205.GM5695@localhost> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Wed, 25 Jul 2018 17:08:43 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Nico" == Nico Williams writes: Nico> It is possible to add a keyword for this purpose in the WITH syntax: Nico> WITH VIEW (...) AS a_view The existing (and standard) syntax is WITH ctename AS (query). Syntaxes that have been suggested for explicitly controlling the materialization are along the lines of: WITH ctename AS [[NOT] MATERIALIZED] (query) (MATERIALIZED is already an un-reserved keyword) -- Andrew (irc:RhodiumToad)