postgresql/src/backend
Michael Paquier 1b73d0b1c3 Refactor code handling the names of files loaded in hba.c
This has the advantage to limit the presence of the GUC values
hba_file and ident_file to the code paths where these files are loaded,
easing the introduction of an upcoming feature aimed at adding inclusion
logic for files and directories in HBA and ident files.

Note that this needs the addition of the source file name to HbaLine, in
addition to the line number, which is something needed by the backend in
two places of auth.c (authentication failure details and auth_id log
when log_connections is enabled).

While on it, adjust a log generated on authentication failure to report
the name of the actual HBA file on which the connection attempt matched,
where the line number and the raw line written in the HBA file were
already included.  This was previously hardcoded as pg_hba.conf, which
would be incorrect when a custom value is used at postmaster startup for
the GUC hba_file.

Extracted from a larger patch by the same author.

Author: Julien Rouhaud
Discussion: https://postgr.es/m/20220223045959.35ipdsvbxcstrhya@jrouhaud
2022-10-26 11:42:13 +09:00
..
access Update outdated comment for TransactionIdSetTreeStatus 2022-10-25 21:43:52 +02:00
backup Rename shadowed local variables 2022-10-05 21:01:41 +13:00
bootstrap Store GUC data in a memory context, instead of using malloc(). 2022-10-14 12:10:48 -04:00
catalog Record dependencies of a cast on other casts that it requires. 2022-10-17 14:02:05 -04:00
commands Improve errhint for ALTER SUBSCRIPTION ADD/DROP PUBLICATION 2022-10-18 11:46:58 +02:00
executor Doc/improve confusing, inefficient tests to locate CTID variable. 2022-10-25 17:35:19 -04:00
foreign Rename SetSingleFuncCall() to InitMaterializedSRF() 2022-10-18 10:22:35 +09:00
jit Track LLVM 15 changes. 2022-10-19 22:18:26 +13:00
lib meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
libpq Refactor code handling the names of files loaded in hba.c 2022-10-26 11:42:13 +09:00
main meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
nodes Use proper macro to access TransactionId 2022-10-20 09:41:03 +02:00
optimizer Update some comments that should've covered MERGE 2022-10-24 12:52:43 +02:00
parser Update some comments that should've covered MERGE 2022-10-24 12:52:43 +02:00
partitioning Remove unnecessary uses of Abs() 2022-10-07 13:29:33 +02:00
po meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
port meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
postmaster Rework shutdown callback of archiver modules 2022-10-19 14:06:56 +09:00
regex Remove uses of register due to incompatibility with C++17 and up 2022-09-24 12:08:37 -07:00
replication Clean up some GUC declarations and comments 2022-10-25 14:06:07 +09:00
rewrite Reject non-ON-SELECT rules that are named "_RETURN". 2022-10-17 12:14:39 -04:00
snowball meson: Add support for building with precompiled headers 2022-10-06 17:19:30 -07:00
statistics Rename shadowed local variables 2022-10-05 21:01:41 +13:00
storage Rename SetSingleFuncCall() to InitMaterializedSRF() 2022-10-18 10:22:35 +09:00
tcop Store GUC data in a memory context, instead of using malloc(). 2022-10-14 12:10:48 -04:00
tsearch Introduce t_isalnum() to replace t_isalpha() || t_isdigit() tests. 2022-10-06 11:08:56 -04:00
utils Improve the accuracy of numeric power() for integer exponents. 2022-10-20 10:10:17 +01:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Move gramparse.h to src/backend/parser 2022-09-14 10:57:13 +07:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
meson.build meson: Add support for building with precompiled headers 2022-10-06 17:19:30 -07:00
nls.mk NLS: Put list of available languages into LINGUAS files 2022-07-13 08:19:17 +02:00