PG_USER_STATUS

PG_USER_STATUS records the states of users that access to the database. It is accessible only to users with system administrator rights.

Table 1 PG_USER_STATUS columns

Name

Type

Description

roloid

oid

ID of the role

failcount

integer

Specifies the number of failed attempts.

locktime

timestamp with time zone

Time at which the role is locked

rolstatus

smallint

Role state

  • 0: normal

  • 1 indicates that the role is locked for some time because the failed login attempts exceed the threshold

  • 2 indicates that the role is locked by the administrator.

permspace

bigint

Size of the permanent table storage space used by a role in the current instance.

tempspace

bigint

Size of the temporary table storage space used by a role in the current instance.