Re: [EXTERNAL] Re: [PATCH] Support using "all" for the db user in pg_ident.conf
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Jelte Fennema <postgres@jeltef.nl>
Cc: Pavel Luzanov <p.luzanov@postgrespro.ru>, Jelte Fennema <Jelte.Fennema@microsoft.com>, "isaac.morland@gmail.com" <isaac.morland@gmail.com>, "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>, Nathan Bossart <nathandbossart@gmail.com>, Andrew Dunstan <andrew@dunslane.net>
Date: 2023-02-15T07:11:08Z
Lists: pgsql-hackers
Attachments
- sample-descriptions.patch (text/x-diff) patch
On Mon, Feb 13, 2023 at 03:13:04PM +0100, Jelte Fennema wrote: > On Mon, 13 Feb 2023 at 15:06, Pavel Luzanov <p.luzanov@postgrespro.ru> wrote: >> Does it make sense to reflect changes to the PG-USERNAME field in the >> pg_ident.conf.sample file? >> >> The same relates to the regexp supportin the DATABASE and USER fieldsof >> the pg_hba.conf.sample file(8fea8683). Which comes down to blame me for both of them. > That definitely makes sense to me. When writing the patch I didn't > realise that there was also documentation in those files. > > I think it also makes sense to include usage of (some of) the features > in the example files here: > https://www.postgresql.org/docs/devel/auth-username-maps.html Hmm, I am not sure that adding more examples in the sample files is worth the duplication with the docs. So, please find attached a patch to close the gap the sample files, for both things, with descriptions of all the field values they can use. What do you think? -- Michael
Commits
-
Add description for new patterns supported in HBA and ident sample files
- 1b43743f1174 16.0 landed
-
Support the same patterns for pg-user in pg_ident.conf as in pg_hba.conf
- efb6f4a4f9b6 16.0 landed
-
Track behavior of \1 in pg_ident.conf when quoted
- 0b717432ff13 16.0 landed
-
Store IdentLine->pg_user as an AuthToken
- 02d3448f4f79 16.0 landed
-
Add tests for regex replacement with \1 in pg_ident.conf to 0003_peer.pl
- e753ae6397fe 16.0 landed
-
Rename some variables related to ident files in hba.{c,h}
- 8607630d74cd 16.0 landed