↑↓ select↵ open⌫ change scopeOpen full search

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

Wiki / Configuration Parameters

password_expiration_warning_threshold

When this parameter is greater than zero, the server will emit a WARNING upon successful password authentication if less than this amount of time remains until the authenticated role's password expires. Note that a role's password only expires if a date was specified in a VALID UNTIL clause for CREATE ROLE or ALTER ROLE. If this value is specified without units, it is taken as seconds. The default is 7 days. This parameter can only be set in the postgresql.conf file or on the server command line.

English manual coverage begins with PostgreSQL 7.4. Source history and runtime observations have their own recorded version boundaries.

Reading PG 19·Select a recorded version

boot val
604800
category
Connections and Authentication / Authentication
context
sighup
documented
true
enumvals
Unknown
extra desc
0 disables these warnings.
lang
en
max val
2147483647
metadata version
19beta4
min val
0
name
password_expiration_warning_threshold
short desc
Threshold for password expiration warnings.
source
pg-settings-source-snapshot
unit
s
vartype
integer

Definition PG 19

When this parameter is greater than zero, the server will emit a WARNING upon successful password authentication if less than this amount of time remains until the authenticated role's password expires. Note that a role's password only expires if a date was specified in a VALID UNTIL clause for CREATE ROLE or ALTER ROLE. If this value is specified without units, it is taken as seconds. The default is 7 days. This parameter can only be set in the postgresql.conf file or on the server command line.

Compare versions

Source references

Full definition and evidence JSON

Definition sources

center · PostgreSQL 19 · wiki-repair-20261023:d3178e0dce091908018cedd89a798145840bad256d9460c5fbbd16c9f8cc7a0f

Text language: en · wiki-repair-20261023:d3178e0dce091908018cedd89a798145840bad256d9460c5fbbd16c9f8cc7a0f