Re: Pasword expiration warning - Mailing list pgsql-hackers

From Nathan Bossart
Subject Re: Pasword expiration warning
Date
Msg-id aYOqhR9fKC8hdir3@nathan
Whole thread Raw
In response to Re: Pasword expiration warning  (Zsolt Parragi <zsolt.parragi@percona.com>)
Responses Re: Pasword expiration warning
List pgsql-hackers
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



pgsql-hackers by date:

Previous
From: Sami Imseih
Date:
Subject: Re: Flush some statistics within running transactions
Next
From: Mark Wong
Date:
Subject: Re: oid2name : add objects file path