Re: Pasword expiration warning

From: songjinzhou <tsinghualucky912(at)foxmail(dot)com>
To: Japin Li <japinli(at)hotmail(dot)com>, Gilles Darold <gilles(at)darold(dot)net>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Bossart, Nathan <bossartn(at)amazon(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: Pasword expiration warning
Date: 2026-01-07 08:37:23
Message-ID: tencent_8C7890411E85257F512EFE4F0DD00EE29806@qq.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello fellow hackers, I've refined the print information based on the japin code above, but otherwise remained unchanged. The result is as follows:

[postgres(at)localhost:~/test/bin]$ ./psql -p 5432 -U test_user2 -d postgres
Password for user test_user2:
2026-01-07 00:28:25.999 PST [82198] WARNING:  your password will expire in 7 hours and 31 minutes
WARNING:  your password will expire in 7 hours and 31 minutes
psql (19devel)
Type "help" for help.

postgres=> \q
[postgres(at)localhost:~/test/bin]$ ./psql -p 5432 -U test_user3 -d postgres
Password for user test_user3:
2026-01-07 00:28:33.998 PST [82282] WARNING:  your password will expire in 2 days and 7 hours
WARNING:  your password will expire in 2 days and 7 hours
psql (19devel)
Type "help" for help.

postgres=> \q
[postgres(at)localhost:~/test/bin]$

Thanks

songjinzhou
tsinghualucky912(at)foxmail(dot)com

Attachment Content-Type Size
v3-0001-Add-password_expire_warning-GUC-to-warn-clients.patch application/octet-stream 6.9 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Chao Li 2026-01-07 08:49:02 Re: Refactor replication origin state reset helpers
Previous Message albert tan 2026-01-07 08:33:31 Re: Correct comment wording in extension.c