pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathandbossart@gmail.com>
To: Zsolt Parragi <zsolt.parragi@percona.com>
Cc: Peter Eisentraut <peter@eisentraut.org>
Cc: Gilles Darold <gilles@darold.net>
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: Wed, 4 Feb 2026 14:22:29 -0600
Message-ID: <aYOqhR9fKC8hdir3@nathan> (raw)
In-Reply-To: <CAN4CZFNSqhRbkh_2MaZNysACf1T-A7hW+=t0tQTUX+Mar0_ymA@mail.gmail.com>
References: <aXuehKtwtUXWVFYp@nathan>
	<197512e0-8116-4776-a600-822d29ee68a6@darold.net>
	<aYDZA3r3lG2oKc5D@nathan>
	<c933b0f1-ed95-4327-aca6-538acd2c547f@darold.net>
	<aYDlAhyYkjaEoEm7@nathan>
	<aYEJhk83XAqk76dP@nathan>
	<aYIUMbyDWobSi94m@nathan>
	<1f4d0b80-3fea-4f4d-8d33-a652ea23e90b@eisentraut.org>
	<aYN3EybnG9ym-Swh@nathan>
	<CAN4CZFNSqhRbkh_2MaZNysACf1T-A7hW+=t0tQTUX+Mar0_ymA@mail.gmail.com>

On Wed, Feb 04, 2026 at 05:44:06PM +0000, Zsolt Parragi wrote:
> Wouldn't that be more confusing?
> 
>   The password for role "foo" will expire at 2026-02-05 16:56"
> 
> No matter which date format is used, this is harder to understand than
> 
>   The password for role "foo" will expire in 1 day(s)

Fair enough.  The main problem we need to figure out for that approach is
how to handle plurals without "(s)".  One option is to move the ereport()
to this function, but as before [0], I'm not sure we want to send a warning
before more of the initialization has completed.  Another option could be
to add a new function that checks the expiration time and emits a warning
as needed, and call that at the end of InitPostgres().

[0] https://postgr.es/m/aYEJhk83XAqk76dP%40nathan

-- 
nathan





view thread (64+ messages)  latest in thread

Message-ID: <aYOqhR9fKC8hdir3@nathan>
Permalink:  ../aYOqhR9fKC8hdir3@nathan/
Also on:    postgresql.org/message-id/aYOqhR9fKC8hdir3@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, zsolt.parragi@percona.com, peter@eisentraut.org, gilles@darold.net, 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: <aYOqhR9fKC8hdir3@nathan>
  References: <aXuehKtwtUXWVFYp@nathan> <197512e0-8116-4776-a600-822d29ee68a6@darold.net> <aYDZA3r3lG2oKc5D@nathan> <c933b0f1-ed95-4327-aca6-538acd2c547f@darold.net> <aYDlAhyYkjaEoEm7@nathan> <aYEJhk83XAqk76dP@nathan> <aYIUMbyDWobSi94m@nathan> <1f4d0b80-3fea-4f4d-8d33-a652ea23e90b@eisentraut.org> <aYN3EybnG9ym-Swh@nathan> <CAN4CZFNSqhRbkh_2MaZNysACf1T-A7hW+=t0tQTUX+Mar0_ymA@mail.gmail.com> <aYOqhR9fKC8hdir3@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