pgsql: Add rule_number to pg_hba_file_rules and map_number to pg_ident_

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Add rule_number to pg_hba_file_rules and map_number to pg_ident_
Дата
Msg-id E1onZp8-000qsc-A8@gemulon.postgresql.org
обсуждение исходный текст
Список 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(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Julien Rouhaud
Дата:
Сообщение: Re: pgsql: Refactor code handling the names of files loaded in hba.c
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Fix unlink() for STATUS_DELETE_PENDING on Windows.