summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorMichael Paquier2022-10-26 06:22:15 +0000
committerMichael Paquier2022-10-26 06:22:15 +0000
commitc591300a8f54d9711157d9a8866f022a257ec4ee (patch)
tree4427a3ceb1c015b2137006cec57297de0d9f67a0 /doc/src
parent37d264478ab47e8fa03751c39ba2c5dd447b89c8 (diff)
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
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/system-views.sgml21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/src/sgml/system-views.sgml b/doc/src/sgml/system-views.sgml
index 1ca7c3f9bfc..1951d1b5a21 100644
--- a/doc/src/sgml/system-views.sgml
+++ b/doc/src/sgml/system-views.sgml
@@ -993,6 +993,17 @@
<tbody>
<row>
<entry role="catalog_table_entry"><para role="column_definition">
+ <structfield>rule_number</structfield> <type>int4</type>
+ </para>
+ <para>
+ Number of this rule, if valid, otherwise <literal>NULL</literal>.
+ This indicates the order in which each rule is considered
+ until a match is found during authentication.
+ </para></entry>
+ </row>
+
+ <row>
+ <entry role="catalog_table_entry"><para role="column_definition">
<structfield>line_number</structfield> <type>int4</type>
</para>
<para>
@@ -1133,6 +1144,16 @@
<tbody>
<row>
<entry role="catalog_table_entry"><para role="column_definition">
+ <structfield>map_number</structfield> <type>int4</type>
+ </para>
+ <para>
+ Number of this map, in priority order, if valid, otherwise
+ <literal>NULL</literal>
+ </para></entry>
+ </row>
+
+ <row>
+ <entry role="catalog_table_entry"><para role="column_definition">
<structfield>line_number</structfield> <type>int4</type>
</para>
<para>