aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeMaterial.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2022-11-24 13:51:34 +0900
committerMichael Paquier <michael@paquier.xyz>2022-11-24 13:51:34 +0900
commita54b658ce77b6705eb1f997b416c2e820a77946c (patch)
tree137432cc6f2ee4804660e124ffa76b5d18e79d3e /src/backend/executor/nodeMaterial.c
parentd09dbeb9bde6b9faabd30e887eff4493331d6424 (diff)
downloadpostgresql-a54b658ce77b6705eb1f997b416c2e820a77946c.tar.gz
postgresql-a54b658ce77b6705eb1f997b416c2e820a77946c.zip
Add support for file inclusions in HBA and ident configuration files
pg_hba.conf and pg_ident.conf gain support for three record keywords: - "include", to include a file. - "include_if_exists", to include a file, ignoring it if missing. - "include_dir", to include a directory of files. These are classified by name (C locale, mostly) and need to be prefixed by ".conf", hence following the same rules as GUCs. This commit relies on the refactoring pieces done in efc9816, ad6c528, 783e8c6 and 1b73d0b, adding a small wrapper to build a list of TokenizedAuthLines (tokenize_include_file), and the code is shaped to offer some symmetry with what is done for GUCs with the same options. pg_hba_file_rules and pg_ident_file_mappings gain a new field called file_name, to track from which file a record is located, taking advantage of the addition of rule_number in c591300 to offer an organized view of the HBA or ident records loaded. Bump catalog version. Author: Julien Rouhaud Reviewed-by: Michael Paquier Discussion: https://postgr.es/m/20220223045959.35ipdsvbxcstrhya@jrouhaud
Diffstat (limited to 'src/backend/executor/nodeMaterial.c')
0 files changed, 0 insertions, 0 deletions