forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1b73d0b
committed
Refactor code handling the names of files loaded in hba.c
This has the advantage to limit the presence of the GUC valueshba_file and ident_file to the code paths where these files are loaded,easing the introduction of an upcoming feature aimed at adding inclusionlogic for files and directories in HBA and ident files.Note that this needs the addition of the source file name to HbaLine, inaddition to the line number, which is something needed by the backend intwo places of auth.c (authentication failure details and auth_id logwhen log_connections is enabled).While on it, adjust a log generated on authentication failure to reportthe 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 werealready included. This was previously hardcoded as pg_hba.conf, whichwould be incorrect when a custom value is used at postmaster startup forthe GUC hba_file.Extracted from a larger patch by the same author.Author: Julien RouhaudDiscussion:https://postgr.es/m/20220223045959.35ipdsvbxcstrhya@jrouhaud1 parent13d53aa commit1b73d0b
3 files changed
+65
-57
lines changedLines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
307 | 307 |
| |
308 | 308 |
| |
309 | 309 |
| |
310 |
| - | |
311 |
| - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
312 | 313 |
| |
313 | 314 |
| |
314 | 315 |
| |
| |||
365 | 366 |
| |
366 | 367 |
| |
367 | 368 |
| |
368 |
| - | |
| 369 | + | |
369 | 370 |
| |
370 | 371 |
| |
371 | 372 |
| |
|
0 commit comments
Comments
(0)