19.9. Аутентификация peer #
Метод аутентификации peer работает, получая имя пользователя операционной системы клиента из ядра и используя его в качестве разрешённого имени пользователя базы данных (с возможностью сопоставления имён пользователя). Этот метод поддерживается только для локальных подключений.
Для метода peer
доступны следующие параметры конфигурации:
map
Позволяет сопоставить имена пользователей системы и базы данных. За подробностями обратитесь к Разделу 19.2.
Аутентификация peer доступна только в операционных системах, поддерживающих функцию getpeereid()
, параметр сокета SO_PEERCRED
или подобные механизмы. В настоящее время это Linux, большая часть разновидностей BSD, включая macOS, и Solaris.
51.5. pg_amproc
#
The catalog pg_amproc
stores information about support functions associated with access method operator families. There is one row for each support function belonging to an operator family.
Table 51.5. pg_amproc
Columns
Column Type Description |
---|
Row identifier |
The operator family this entry is for |
Left-hand input data type of associated operator |
Right-hand input data type of associated operator |
Support function number |
OID of the function |
The usual interpretation of the amproclefttype
and amprocrighttype
fields is that they identify the left and right input types of the operator(s) that a particular support function supports. For some access methods these match the input data type(s) of the support function itself, for others not. There is a notion of “default” support functions for an index, which are those with amproclefttype
and amprocrighttype
both equal to the index operator class's opcintype
.