From: | Michael Paquier <michael(at)paquier(dot)xyz> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add rule_number to pg_hba_file_rules and map_number to pg_ident_ |
Date: | 2022-10-26 06:23:34 |
Message-ID: | E1onZp8-000qsc-A8@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Add rule_number to pg_hba_file_rules and map_number to pg_ident_file_mappings
These numbers are strictly-monotone identifiers assigned to each rule
of pg_hba_file_rules and each map of pg_ident_file_mappings when loading
the HBA and ident configuration files, indicating the order in which
they are checked at authentication time, until a match is found.
With only one file loaded currently, this is equivalent to the line
numbers assigned to the entries loaded if one wants to know their order,
but this becomes mandatory once the inclusion of external files is
added to the HBA and ident files to be able to know in which order the
rules and/or maps are applied at authentication. Note that NULL is used
when a HBA or ident entry cannot be parsed or validated, aka when an
error exists, contrary to the line number.
Bump catalog version.
Author: Julien Rouhaud
Discussion: https://postgr.es/m/20220223045959.35ipdsvbxcstrhya@jrouhaud
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c591300a8f54d9711157d9a8866f022a257ec4ee
Modified Files
--------------
doc/src/sgml/system-views.sgml | 21 +++++++++++++++
src/backend/utils/adt/hbafuncs.c | 51 +++++++++++++++++++++++++++++--------
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.dat | 11 ++++----
src/test/regress/expected/rules.out | 10 +++++---
5 files changed, 74 insertions(+), 21 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2022-10-26 17:43:06 | Re: pgsql: Fix unlink() for STATUS_DELETE_PENDING on Windows. |
Previous Message | Julien Rouhaud | 2022-10-26 04:07:35 | Re: pgsql: Refactor code handling the names of files loaded in hba.c |