Password profiles system catalogs v18

The password_profile extension creates the system catalogs that stores profile information.

pg_catalog.pg_profile

The pg_catalog.pg_profile system catalog stores information about the profiles and the password management rules added to that profile.

ColumnDescription
oidThe unique number to identify a profile.
oid is assigned to a profile by a sequence.
prfnameName of the profile.
prffailedloginattemptsNumber of failed login attempts allowed by the profile.
prfpasswordlocktimeLocking duration in seconds after a role is locked.
prfpasswordlifetimeValidity of current role password in seconds.
prfpasswordgracetimeDuration in seconds after password expiration during which the role can still log in and change the password.
prfpasswordverifyfuncdbThe database OID in which the password verify function is created.
prfpasswordverifyfuncThe password verify function name created by a user to impose password rules.

pg_catalog.pg_auth_profile

ColumnDescription
roleidThe unique number to identify a role.
profileidThe object identifier for the role's profile.
roleaccountstatusAccount status of the role.
rolefailedloginsNumber of login failures of the role.
rolelockdateThe timestamp when the role was last locked.
rolepasswordsetatThe timestamp when the role's password was last set or modified.
rolepasswordexpireThe timestamp when the role's password expires.

pg_catalog.pg_profile_info

The pg_catalog.pg_profile_info system catalog view stores information about the profiles and the corresponding parameter values.

ColumnDescription
profile_nameName of the profile.
failed_login_attemptsNumber of failed login attempts allowed by the profile.
password_lock_timeLocking duration in days after a role is locked.
password_life_timeValidity of current role password in days.
password_grace_timeDuration in days after password expiration during which the role can still log in and change the password.
password_verify_functionThe password verify function name created by a user, in <database name>.<schema name>.<function name> format, to impose password rules.

pg_catalog.pg_role_profile_info

The pg_catalog.pg_role_profile_info system catalog view stores information about the roles and their associated profiles.

ColumnDescription
role_nameName of the role.
profile_nameName of the profile associated with the role.
role_statusStatus of the role.
role_lock_dateThe timestamp when the role was last locked.
role_expiry_dateThe timestamp when the role's password expires.