pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: Gilles Darold <gilles@darold.net>
Cc: Zsolt Parragi <zsolt.parragi@percona.com>
Cc: Japin Li <japinli@hotmail.com>
Cc: Yuefei Shi <shiyuefei1004@gmail.com>
Cc: songjinzhou <tsinghualucky912@foxmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Cc: Andrew Dunstan <andrew@dunslane.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: liu xiaohui <liuxh.zj.cn@gmail.com>
Cc: Steven Niu <niushiji@gmail.com>
Subject: Re: Pasword expiration warning
Date: Mon, 2 Feb 2026 11:55:14 -0600
Message-ID: <aYDlAhyYkjaEoEm7@nathan> (raw)
In-Reply-To: <c933b0f1-ed95-4327-aca6-538acd2c547f@darold.net>
References: <MN2PR15MB30212CEFE2F8B93C398FBF60A782A@MN2PR15MB3021.namprd15.prod.outlook.com>
	<MEAPR01MB30319C7BB75B88028E1DB7E1B682A@MEAPR01MB3031.ausprd01.prod.outlook.com>
	<f7d6e318-415a-4b98-86b0-28ae954707cc@darold.net>
	<CAN4CZFMBj-mZq_o8BtQz_TgqDTALbn31kc-SFtWE4FR1N-4RBw@mail.gmail.com>
	<MEAPR01MB3031CF12043573A245D931AAB69EA@MEAPR01MB3031.ausprd01.prod.outlook.com>
	<CAN4CZFP4AGeO-AynwE3e62XOKqaYnXtcGT1qfj=6nw2t5FOXwA@mail.gmail.com>
	<aXuehKtwtUXWVFYp@nathan>
	<197512e0-8116-4776-a600-822d29ee68a6@darold.net>
	<aYDZA3r3lG2oKc5D@nathan>
	<c933b0f1-ed95-4327-aca6-538acd2c547f@darold.net>

On Mon, Feb 02, 2026 at 06:43:28PM +0100, Gilles Darold wrote:
> I think configuration name password_expiration_warning_threshold is too
> long, why not only password_warning_threshold?  I think the description is
> here to explain more the configuration directive.

I agree that it's long, but leaving out "expiration" makes the name rather
ambiguous.  FWIW we do have 3 other GUCs with lengths >= this
(max_parallel_apply_workers_per_subscription,
ssl_passphrase_command_supports_reload, and
autovacuum_vacuum_insert_scale_factor).

> About the unit, I think using minutes is useless. It should be set in days
> to be really useful but like all other time based directives it can be set
> in seconds, minutes or hours too. This give the user the granularity he
> wants. The common use will be to set it using 'Nd' syntax but if someone
> wants to use 'Ns' syntax, it can be done.

Not all time-based GUCs use seconds.  log_rotation_age and
wal_summary_keep_time use minutes, and many others using milliseconds.  But
I'm fine with changing it back to seconds.  That would still allow setting
the threshold up to ~68 years, which ought to be enough for anyone.

-- 
nathan





view thread (64+ messages)  latest in thread

Message-ID: <aYDlAhyYkjaEoEm7@nathan>
Permalink:  ../aYDlAhyYkjaEoEm7@nathan/
Also on:    postgresql.org/message-id/aYDlAhyYkjaEoEm7@nathan

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: nathandbossart@gmail.com, gilles@darold.net, zsolt.parragi@percona.com, japinli@hotmail.com, shiyuefei1004@gmail.com, tsinghualucky912@foxmail.com, andrew@dunslane.net, tgl@sss.pgh.pa.us, liuxh.zj.cn@gmail.com, niushiji@gmail.com
  Subject: Re: Pasword expiration warning
  In-Reply-To: <aYDlAhyYkjaEoEm7@nathan>
  References: <MN2PR15MB30212CEFE2F8B93C398FBF60A782A@MN2PR15MB3021.namprd15.prod.outlook.com> <MEAPR01MB30319C7BB75B88028E1DB7E1B682A@MEAPR01MB3031.ausprd01.prod.outlook.com> <f7d6e318-415a-4b98-86b0-28ae954707cc@darold.net> <CAN4CZFMBj-mZq_o8BtQz_TgqDTALbn31kc-SFtWE4FR1N-4RBw@mail.gmail.com> <MEAPR01MB3031CF12043573A245D931AAB69EA@MEAPR01MB3031.ausprd01.prod.outlook.com> <CAN4CZFP4AGeO-AynwE3e62XOKqaYnXtcGT1qfj=6nw2t5FOXwA@mail.gmail.com> <aXuehKtwtUXWVFYp@nathan> <197512e0-8116-4776-a600-822d29ee68a6@darold.net> <aYDZA3r3lG2oKc5D@nathan> <c933b0f1-ed95-4327-aca6-538acd2c547f@darold.net> <aYDlAhyYkjaEoEm7@nathan>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox