Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vnjOX-00AsdZ-1h for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Feb 2026 20:22:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vnjOU-00DOlh-1n for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Feb 2026 20:22:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vnjOU-00DOlT-0o for pgsql-hackers@lists.postgresql.org; Wed, 04 Feb 2026 20:22:34 +0000 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vnjOS-00000000Zom-0O48 for pgsql-hackers@postgresql.org; Wed, 04 Feb 2026 20:22:33 +0000 Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-7cfca52ac2dso145115a34.0 for ; Wed, 04 Feb 2026 12:22:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770236551; x=1770841351; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=fO/+A4JceHemTs/PHxPszi7nlo3p751qUlgHFN5WqUs=; b=KrjOwOE0Dl/x7B5vZfVYYNGHxzXvNN2/pMFL068RMu0O7J4vhxYOEfzhdtpNp18WT7 XXuMQg78wZsX7ZiMU6bUSuw8I5ghjvXrGuULCYQ1OJcsdD/zjIaqeq4v2Jf5UmxusbE8 KD0jVckFCUfzRle0vGB31LhIv0SQOZ+2je2M819D0FDy3vzlam3uCc+eao40lLayejLG QrEuyxNNGxTA8eolObFoXqiOUxfuAj8nNayjZAPHSKucDJHQuChGmj5P9EhnpG8MLFZI e25Q1VxwCw8TSxbzF5yBxQMj4H763SH+Tg+ZLzlQxvu/pwHhNN7GgYp6sOE77etul/uv +W+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770236551; x=1770841351; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fO/+A4JceHemTs/PHxPszi7nlo3p751qUlgHFN5WqUs=; b=OkJgdvoYRxcdt8ngLN7XbyLU/hmCv5Ohqt9Jm3RlXx+R6/VGsfwcr5T+4RGJ0B8mTf nqDnViq+WBqBPq6FvFXKSiPWO5szYLqjUdwANXHfPPNoiAI4eR0ITYv221xyt+iKN/iT UyWkr6i3Si0ekAQAapt0sLrg93XiYCcJUDIr7n0aBVWlvhhgoweVmHX5GVDpdZHU2IPn Q3PMAk3r5vPmhaSawG/JSVuTtS0UzM1lL/9A1sJmE6hOd4IWPfQci6OIA8xsnpeGwHlw OK6nljGYxp5e7HDVGODLO/1rBHO1avc69QBhpGf7yWF/42z6X/uu3tsU9PniqscEnaf1 ZVqg== X-Forwarded-Encrypted: i=1; AJvYcCVMz+e9QPp804+IORl3dycREKMdfjUvpkPe3x43hP6/CW8HRgVLxYgFCM6/eM5OQloVLSLlPyTE6UH8uW6O@postgresql.org X-Gm-Message-State: AOJu0Yww06fWXiVDlqDJXYnTKU/tvuSuCwOY7KtWM0FsSM7vuwRqj7pm K55FFek+EjB4RZbGmjJr2RHGjAz6W/Hq7MoibrMtrA6vRXEZE/tosyh3 X-Gm-Gg: AZuq6aIJyFw2dATvYC/iP2S52oHt3a+9y3CrHAxyfCZx5isAkABA9nGThmNkMR/XgqA xWhyadEdF3TFlkaz0+yJ//6+suaO6vyExlqkm/zRfoB8gkjoGm57a5VbY43gLwBidMCILwRWF8I ESxovcBy3Ta85gMOGA1V9brVxRBWUtfzhTGlRAnNa1EC8trRuL6xzc4o5wUnpIBWmbDcjP1rhzd 4eHh3Bln/Kzp8b0OwJBA0K200D+TXNM2mOTyaplWmcTijj7ATsrLheAY3dJUZknPGb+rwFxUs24 UD5mi6OupbOEBETeuQMkJblkr6WohFUOiyDvcPW63PleTr8NdEGTMJYsHgL7Xspel6PCA6xNwrE Zq93wJp9esHp9PNhvdq/pe6+XREg9eiVsllhkv/xBwRxvHQzJEuGBceif1RWmUgas2+cdYx6W/g LLCcfHK+jWEpX5VAMxc7HpprotblHsggGVeNLZV1VTv4RYIx9G0B3XMLe48VCV9EL6o+ogxZZyR Wns X-Received: by 2002:a05:6830:650c:b0:7d1:9516:6858 with SMTP id 46e09a7af769-7d448aae627mr2830908a34.24.1770236551374; Wed, 04 Feb 2026 12:22:31 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-7d44911be74sm2280660a34.11.2026.02.04.12.22.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Feb 2026 12:22:31 -0800 (PST) Date: Wed, 4 Feb 2026 14:22:29 -0600 From: Nathan Bossart To: Zsolt Parragi Cc: Peter Eisentraut , Gilles Darold , Japin Li , Yuefei Shi , songjinzhou , PostgreSQL Hackers , Andrew Dunstan , Tom Lane , liu xiaohui , Steven Niu Subject: Re: Pasword expiration warning Message-ID: References: <197512e0-8116-4776-a600-822d29ee68a6@darold.net> <1f4d0b80-3fea-4f4d-8d33-a652ea23e90b@eisentraut.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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