pgsql: Track behavior of \1 in pg_ident.conf when quoted

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Track behavior of \1 in pg_ident.conf when quoted
Date: 2023-01-17 04:42:05
Message-ID: E1pHdnQ-0044TA-M3@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Track behavior of \1 in pg_ident.conf when quoted

Entries of pg-user in pg_ident.conf that are quoted and include '\1'
allow a replacement from a subexpression in a system user regexp. This
commit adds a test to track this behavior and a note in the
documentation, as it could be affected by the use of an AuthToken for
the pg-user in the IdentLines parsed.

This subject has come up in the discussion aimed at extending the
support of pg-user in ident entries for more patterns.

Author: Jelte Fennema
Discussion: https://postgr.es/m/CAGECzQRNow4MwkBjgPxywXdJU_K3a9+Pm78JB7De3yQwwkTDew@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0b717432ff13683f9d13f007dab1c3380cae2f0d

Modified Files
--------------
doc/src/sgml/client-auth.sgml | 3 +++
src/test/authentication/t/003_peer.pl | 13 +++++++++++++
2 files changed, 16 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2023-01-17 05:13:57 pgsql: Fix typo in comment.
Previous Message David Rowley 2023-01-17 03:37:31 pgsql: Don't presort ORDER BY/DISTINCT Aggrefs with volatile functions