Make consistent a couple of log messages when parsing HBA files
authorMichael Paquier <michael@paquier.xyz>
Fri, 5 Aug 2022 00:50:27 +0000 (09:50 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 5 Aug 2022 00:50:27 +0000 (09:50 +0900)
commit718fe0a14add0fadb17d715d7aa24ebcf3fb35c4
treea0bb6548b0e402bffb180c6d38756601b0d03368
parent47ab1ac822cd928bfe43b2c25be102a6a08902f4
Make consistent a couple of log messages when parsing HBA files

This commit adjusts two log messages:
- When a field in pg_ident.conf is not populated, report the line of the
configuration file in an error context message instead of the main
entry.
- When parsing pg_ident.conf and finding an invalid regexp, add some
information about the line of the configuration file involved within an
error context message.

Author: Julien Rouhaud
Discussion: https://postgr.es/m/20220223045959.35ipdsvbxcstrhya@jrouhaud
src/backend/libpq/hba.c