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