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 1nqypL-0002D3-2B for pgsql-hackers@arkaria.postgresql.org; Tue, 17 May 2022 15:09:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nqypJ-0006vp-7a for pgsql-hackers@arkaria.postgresql.org; Tue, 17 May 2022 15:09:33 +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 1nqypI-0006vg-Uq for pgsql-hackers@lists.postgresql.org; Tue, 17 May 2022 15:09:32 +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 1nqypC-0000ji-EM for pgsql-hackers@lists.postgresql.org; Tue, 17 May 2022 15:09:32 +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 24HF9Nc21581686; Tue, 17 May 2022 11:09:23 -0400 From: Tom Lane To: Kyotaro Horiguchi cc: pgsql-hackers@lists.postgresql.org Subject: Re: create_help.pl treats as replaceable In-reply-to: <20220517.174342.1884842412165214815.horikyota.ntt@gmail.com> References: <20220517.174342.1884842412165214815.horikyota.ntt@gmail.com> Comments: In-reply-to Kyotaro Horiguchi message dated "Tue, 17 May 2022 17:43:42 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1581684.1652800163.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 17 May 2022 11:09:23 -0400 Message-ID: <1581685.1652800163@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Kyotaro Horiguchi writes: > I found it annoying that sql_help.c contains a literal parameter as a > translatable string. > The cause is that create_help.pl treats match as a > replaceable. The attached excludes literals from translatable strings. > By a quick look it seems to me that the "match" in "COPY.. HEADER > match" is the first and only instance of a literal parameter as of > PG15. Isn't that a documentation bug rather than a problem with create_help? I see what you're talking about: HEADER [ boolean | match ] but that just seems flat-out wrong. If "match" is a keyword it should be rendered like other keywords. I'm not very interested in splitting hairs about whether the grammar thinks it is a keyword --- it looks like one to a user. So I think HEADER [ boolean | MATC= H ] would be a better solution. regards, tom lane