↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / System Information Functions And Operators

Returns the authentication method and the identity (if any) that the user presented during the authentication cycle before they were assigned a database role.

Reading PG 18current·documented in 5 of 27 versions, 16 to 20

Signatures & examples

system_user → text
Returns the authentication method and the identity (if any) that the user presented during the authentication cycle before they were assigned a database role. It is represented as auth_method:identity or NULL if the user has not been authenticated (for example if Trust authentication has been used).
Version history 1
  1. 15 → 16 added

Definition snapshot: b7bd9cda · English manual source