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 1hMw9D-0007C5-0E for pgsql-hackers@arkaria.postgresql.org; Sat, 04 May 2019 15:00:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hMw9B-0001PA-AH for pgsql-hackers@arkaria.postgresql.org; Sat, 04 May 2019 15:00:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMw9A-0001Gz-Uf for pgsql-hackers@lists.postgresql.org; Sat, 04 May 2019 15:00:16 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMw99-0006RI-BC for pgsql-hackers@lists.postgresql.org; Sat, 04 May 2019 15:00:16 +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 x44F0Bu9004470; Sat, 4 May 2019 11:00:11 -0400 From: Tom Lane To: Michael Paquier cc: pgsql-hackers@lists.postgresql.org Subject: Re: Inconsistent error message wording for REINDEX CONCURRENTLY In-reply-to: <20190504085543.GE2174@paquier.xyz> References: <23694.1556806002@sss.pgh.pa.us> <20190504085543.GE2174@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Sat, 04 May 2019 17:55:43 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <4468.1556982011.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sat, 04 May 2019 11:00:11 -0400 Message-ID: <4469.1556982011@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > On Thu, May 02, 2019 at 10:06:42AM -0400, Tom Lane wrote: >> regression=3D# reindex index concurrently pg_class_oid_index; >> psql: ERROR: concurrent reindex is not supported for catalog relations >> regression=3D# reindex table concurrently pg_class; = >> psql: ERROR: concurrent index creation on system catalog tables is not= supported >> = >> It'd be nice though if those error messages gave the impression of havi= ng >> been written on the same planet. > We could do a larger brush-up of error messages in this area, as these > are full sentences which is not a style allowed, no? I wouldn't object to either one in isolation, it's the inconsistency that irks me. > How about the following changes > for at least these two? > "cannot use REINDEX CONCURRENTLY on system catalogs" > "cannot create index on system catalog concurrently" I'd suggest something like "cannot reindex a system catalog concurrently" for both cases. The "cannot create index" wording doesn't seem to me to be very relevant, because if you try that you'll get regression=3D# create index on pg_class(relchecks); psql: ERROR: permission denied: "pg_class" is a system catalog > Then we have some other messages in index.c which could be cleaned > up.. For example at the beginning of index_constraint_create(), there > are two them, but there is much more which could be improved. Do you > think this is worth having a look and fixing? I'm not excited about rewording longstanding errors. These two are new though (aren't they?) regards, tom lane