Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d1KLm-0002DO-9I for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Apr 2017 22:14:54 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1d1KLl-0000Kd-Rt for pgsql-hackers@arkaria.postgresql.org; Thu, 20 Apr 2017 22:14:53 +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.84_2) (envelope-from ) id 1d1KKH-0005pl-4E for pgsql-hackers@postgresql.org; Thu, 20 Apr 2017 22:13:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d1KKE-0008N8-Hb for pgsql-hackers@postgresql.org; Thu, 20 Apr 2017 22:13:19 +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 v3KMDHth022270; Thu, 20 Apr 2017 18:13:17 -0400 From: Tom Lane To: Alvaro Herrera cc: Pg Hackers Subject: Re: WITH clause in CREATE STATISTICS In-reply-to: <20170420212426.ltvgyhnefvhixm6i@alvherre.pgsql> References: <20170420212426.ltvgyhnefvhixm6i@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Thu, 20 Apr 2017 18:24:26 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22268.1492726397.1@sss.pgh.pa.us> Date: Thu, 20 Apr 2017 18:13:17 -0400 Message-ID: <22269.1492726397@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Alvaro Herrera writes: > Simon just pointed out that having the WITH clause appear in the middle > of the CREATE STATISTICS command looks odd; apparently somebody else > already complained on list about the same. Other commands put the WITH > clause at the end, so perhaps we should do likewise in the new command. > Here's a patch to implement that. I verified that if I change > qualified_name to qualified_name_list, bison does not complain about > conflicts, so this new syntax should support extension to multiple > relations without a problem. Yeah, WITH is fully reserved, so as long as the clause looks like WITH ( stuff... ) you're pretty much gonna be able to drop it wherever you want. > Discuss. +1 for WITH at the end; the existing syntax looks weird to me too. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers