Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oF6Dt-0004EC-5w for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Jul 2022 03:54:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oF6Ds-0007Zg-1x for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Jul 2022 03:54:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oF6Dr-0007WB-Oh for pgsql-hackers@lists.postgresql.org; Sat, 23 Jul 2022 03:54:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oF6Dp-0008Lx-Ng for pgsql-hackers@postgresql.org; Sat, 23 Jul 2022 03:54:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 26N3sRvr803081; Fri, 22 Jul 2022 23:54:27 -0400 From: Tom Lane To: Michael Paquier cc: Alvaro Herrera , Dean Rasheed , Matthias van de Meent , Simon Riggs , PostgreSQL Hackers Subject: Re: Make name optional in CREATE STATISTICS In-reply-to: References: <20220722130646.3da5oh7tgz5qgooi@alvherre.pgsql> Comments: In-reply-to Michael Paquier message dated "Sat, 23 Jul 2022 12:25:23 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <803079.1658548467.1@sss.pgh.pa.us> Date: Fri, 22 Jul 2022 23:54:27 -0400 Message-ID: <803080.1658548467@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > I have just looked at 83011ce, and got what you've done here. You > have thrown away reindex_target_multitable and added three parts for > SCHEMA, DATABASE and SYSTEM instead with their own options, enforcing > the restriction on CONCURRENTLY at the end of REINDEX SYSTEM in the > parser rather than indexcmds.c. That does not seem like an improvement. In v15: regression=# REINDEX SYSTEM CONCURRENTLY db; ERROR: cannot reindex system catalogs concurrently As of HEAD: regression=# REINDEX SYSTEM CONCURRENTLY db; ERROR: syntax error at or near "CONCURRENTLY" LINE 1: REINDEX SYSTEM CONCURRENTLY db; ^ That is not a very helpful error, not even if the man page doesn't show the syntax as legal. regards, tom lane