Oct 2022

4 commits
Add support for regexps on database and user entries in pg_hba.conf
24 Oct 2022Michael Paquiermaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #351 of 3 reviewers saw the final version

The commit retains the matching, compilation, and cleanup logic of #35 in src/backend/libpq/hba.c. Changes are comments, variable scope, and documentation/test commentary, including a revised quoted-comma example, as confirmed in #36.

  • Jacob Championsaw an earlier versiontrailerJacob raised compatibility and anchoring concerns, requested precompilation and negative tests in #7, and continued the compatibility review in #16, before substantial implementation changes.
  • Tom Lanesaw an earlier versiontrailerTom proposed database matching and pg_ident.conf-compatible semantics in #3, rejected a compatibility GUC in #5, and defended those semantics in #13 before the later rework.
  • Michael Paquiersaw the final versiontrailerMichael directed the representation and cleanup revisions, then reported manual testing of patterns, reloads, views, and lists in #36 and committed the final version.
Refactor more logic for compilation of regular expressions in hba.c
21 Oct 2022Michael Paquiermaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #331 of 1 reviewer saw the final version

Extracts only the regcomp_auth_token() error-reporting refactor from #33, leaving the database/user feature, documentation, and tests for later. The extracted logic differs only in comments, whitespace, and braces, consistent with #34.

  • Michael Paquiersaw the final versioncommittercommitted the patch
Refactor regular expression handling in hba.c
19 Oct 2022Michael Paquiermaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #29

Matches the AuthToken/IdentLine refactor posted by Michael in #29, derived from Bertrand's #28; the commit credits both authors. Besides formatting and comments, free_auth_token() drops pfree(token), leaving token storage to memory-context cleanup.

Refactor TAP test authentication/001_password.pl
6 Oct 2022Michael Paquiermaster16beta1REL_19_STABLE16beta1REL_18_STABLE16beta1REL_17_STABLE16beta1REL_16_STABLE16beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #17

Commits the preparatory authentication/001_password.pl refactor from #17, excluding the main feature patch and removing the host argument so tests remain local, as confirmed in #19. The commit credits Bertrand and Michael; the helpers originated in Bertrand's #11.

Credits across 4 commits

Author
Bertrand Drouvot4
Michael Paquier2
Reviewer
Michael Paquiercommitter2
Jacob Champion1
Tom Lane1
Committer
Michael Paquier4