Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uZXYm-004xOd-6i for pgsql-docs@arkaria.postgresql.org; Wed, 09 Jul 2025 16:22:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uZXYj-001INY-HF for pgsql-docs@arkaria.postgresql.org; Wed, 09 Jul 2025 16:22:14 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uZXYj-001INQ-9e for pgsql-docs@lists.postgresql.org; Wed, 09 Jul 2025 16:22:13 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uZXYh-006Qa6-3D for pgsql-docs@lists.postgresql.org; Wed, 09 Jul 2025 16:22:13 +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 569GM7Q61145314; Wed, 9 Jul 2025 12:22:07 -0400 From: Tom Lane To: "David G. Johnston" cc: alexey.shishkin@enterprisedb.com, pgsql-docs@lists.postgresql.org Subject: Re: correction suggestion for https://www.postgresql.org/docs/17/auth-username-maps.html In-reply-to: References: <175206279327.3157504.12519088928605422253@wrigleys.postgresql.org> Comments: In-reply-to "David G. Johnston" message dated "Wed, 09 Jul 2025 08:15:09 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1145312.1752078127.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 09 Jul 2025 12:22:07 -0400 Message-ID: <1145313.1752078127@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > On Wed, Jul 9, 2025 at 7:56=E2=80=AFAM PG Doc comments form > wrote: >> Pls. let me suggest the correction for the >> https://www.postgresql.org/docs/17/auth-username-maps.html page. >> It has the following sentence: >> ' >> If the database-username field starts with a slash (/), the remainder o= f >> the >> field is treated as a regular expression (see Section 9.7.3.1 for detai= ls >> of >> PostgreSQL's regular expression syntax). It is not possible to use \1 t= o >> use >> a capture from regular expression on system-username for a regular >> expression on database-username. >> ' >> It looks like 'to use a capture' has to be replaced by 'to capture'. >> best regards > What is written is factually correct. Your suggestion makes it > incorrect; and wouldn't be good English even if it was. The existing sentence is pretty mangled English, though. I think it would be clearer as When the database-username field is a regular expression, it is not possible to use \1 within it to refer to a capture from the system-username field. Thoughts? regards, tom lane