Re: [PATCH] Expose port->authn_id to extensions and triggers

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [PATCH] Expose port->authn_id to extensions and triggers
Дата
Msg-id Yh8YPDWBFoM0puXz@paquier.xyz
обсуждение исходный текст
Ответ на Re: [PATCH] Expose port->authn_id to extensions and triggers  (Jacob Champion <pchampion@vmware.com>)
Список pgsql-hackers
On Tue, Mar 01, 2022 at 10:03:20PM +0000, Jacob Champion wrote:
> Added a first draft in v5, alongside the perltidy fixups mentioned by
> Michael.

+    The authenticated identity is an immutable identifier for the user
+    presented during the connection handshake; the exact format depends on
+    the authentication method in use. (For example, when using the
+    <literal>scram-sha-256</literal> auth method, the authenticated identity
+    is simply the username. When using the <literal>cert</literal> auth
+    method, the authenticated identity is the Distinguished Name of the
+    client certificate.) Even for auth methods which use the username as
+    the authenticated identity, this function differs from
+    <literal>session_user</literal> in that its return value cannot be
+    changed after login.

That looks enough seen from here.  Thanks!

Nit: "auth method" would be a first in the documentation, so this had
better be "authentication method".  (No need to send an updated patch
just for that).

So, any comments and/or opinions from others?
--
Michael

Вложения

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

Предыдущее
От: Kyotaro Horiguchi
Дата:
Сообщение: Re: Add the replication origin name and commit-LSN to logical replication worker errcontext
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Design of pg_stat_subscription_workers vs pgstats