PG_AUTHID v18

The PG_AUTHID view provides information about database authorization identifiers (that is, roles). A role includes users and groups.

In addition to the information in the PostgreSQL pg_authid description, EDB Postgres Advanced Server provides the following information.

Additional columns in EDB Postgres Advanced Server

NameTypeDescription
rolredwoodprivsIntegerSpecified whether the role has redwood specific privileges
rolprofileOidObject identifier for the role's profile
rolaccountstatusSmallintAccount status of the role
rolfailedloginsIntegerNumber of failed login attempts. This parameter is internally updated when login is denied due to authentication failure. If this count exceeds the limit specified in its profile, the role is locked. On successful login, this counter is reset to 0. Explicit use of the ACCOUNT clause to ALTER ROLE can also reset this counter to 0.
rolpasswordsetatTimestamp with time zoneSpecifies the password set time, it is null if password is not set
rollockdateTimestamp with time zoneThe time when the account was last locked; null if the account was never locked before
rolpasswordexpireTimestamp with time zoneThe time after which a password change is forced at the next login
rollastloginTimestamp with time zoneSpecifies the time of the last user login. If the value is NULL, the user hasn't logged in to the database.

Viewing privileges

There are functions designed to check redwood specific privileges for a role. They are useful for verifying permissions within SQL commands or for troubleshooting access issues. For more information see, functions to view redwood specific privileges.