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 1vdUxj-001MZw-1i for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Jan 2026 14:56:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vdUxg-00EaO3-2D for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Jan 2026 14:56:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vdUxg-00EaNv-1D for pgsql-hackers@lists.postgresql.org; Wed, 07 Jan 2026 14:56:37 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vdUxe-00564z-30 for pgsql-hackers@postgresql.org; Wed, 07 Jan 2026 14:56:36 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-4779cb0a33fso23588245e9.0 for ; Wed, 07 Jan 2026 06:56:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767797794; x=1768402594; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=oqfyZJZbWyYJ2R4Sz8bwZTbhjU/GOeRo7onNBiEEnGM=; b=V8UALZa61C5rXr3VXFsdms02uee7LWouY1lxHSiF1OsF1HO+4fB9XVBLUSnpuHFDCP SzBay85PUxRqPUHohveibND+P0ewyTKUFqGrsXg/5mAU3KolkVb7WGvvY+3qGeUB8Lsg c37UkrcNyRbqBJ9rFwnKv67k6CpzGsvtCNRI78y8seyEclCLsr6XIizpa8JPPG6fGw1j 7sp6JJNQs8CaLn+lEwDMI223rvIwSF0ZxYS8cMYX+7BACjZXtwV9Vv6jEiifPVyNhP9V WRxLleB3r0L33JiuwVfaDUkFfGcEsDpQ/7I3dOzlz4HOtGevPeilChmTHQIHGbTpOPO3 hOTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767797794; x=1768402594; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oqfyZJZbWyYJ2R4Sz8bwZTbhjU/GOeRo7onNBiEEnGM=; b=iEI645feV5K5x1651UNZi1QLLrp3Kdub+mT/7L7WyaVOIX6H0n7FlwuvN/AFwi70aV iFk6xE12kuzy6dGv1Um5LYNT4hDSmE+0Ohk9xGXf6S9UKvcGfH1vptFoP7YI9ImiPstf qnOw6lBe1EVZqvSjDTFhVh9jJ6e6B8Yx9S4ZjZoUA/ZzSvbU/V7RO2cYw7GeAHkmQtNM U6dvzrICdd1sk1wjC2zBXqBdilhgG3pxUPjeMjb+NuI1Nj9rISUuxJMtDTmlnCANKXAH aY5JKvp3zMdp6nupxVVcvWlvaXPoOAuNJWhmnl1PNwjUC0CZMWOne6tIjOB67AcKOQfG +VjQ== X-Gm-Message-State: AOJu0Ywln00UeBr2j8k92kuZfQxwChHeylmfFP9i664er0BdD7nBasTo BwN2RuCX5ReVfGq5YFOZe50oBC/+jHRJFTTNpW+3F7qvSgTUZIlIFG15 X-Gm-Gg: AY/fxX4HSjDVFMEWFfOPIACcOIi+xmAF0G2gC83t7IhMuOxMUJI587pmg3HnuFCwork 0dGyX296nNSFMoCf4U+MgA3sYjSoO/1XU70KMjYIbfuwqoVAPafhH4RnbmB4aY+FC82LzlMtfCG PS2wHvD/+hjH9HwlNOetPsuRIZtjIAUjofVIJTauqikB1PEpUKJj/NUjmWQlA7DsVgf0hTk9J0B 9l4IdQ1JEMYSHxNJpofoOj7ckwEht86baajP1ugBeO9zehe8PjB2QBB4PHDKDjBzwA6OcxFAocv 4eCW7QeNrGBrMTTqhvRW2eP+scCMKjKV702mmuSk8eugu0+aOmjA7n0daSFC/O/3IlWdbhBv/6z 4vfdeq0JlSIs7ny2tqVcPrMMEpwCT5H3wVCBBjOr7Fejr+LSs3bCFOhSvgIjABAQNbQLSwpiCs0 whdzfzr+3PSLIaV7gXj75Wbu88lM4CCdj8eq5NwQHIbqPRugKhCJMu9iwP14O0EQXB X-Google-Smtp-Source: AGHT+IHrB7TO61+zzSyOvjrMD+ZsDKSFAoXjMdRKIdsdlLCsndTqgsGu5kNS9lhesnZ+9UuDwYNnsw== X-Received: by 2002:a05:600c:4ed3:b0:47d:6140:3284 with SMTP id 5b1f17b1804b1-47d88fc1df4mr5283775e9.37.1767797793474; Wed, 07 Jan 2026 06:56:33 -0800 (PST) Received: from ?IPV6:2a01:cb14:1c4a:2100:ef54:a19f:2075:4460? ([2a01:cb14:1c4a:2100:ef54:a19f:2075:4460]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-47d865f84besm16198435e9.1.2026.01.07.06.56.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Jan 2026 06:56:33 -0800 (PST) Message-ID: <786b70c5-ee75-4450-84e7-936a20de63b9@gmail.com> Date: Wed, 7 Jan 2026 15:56:32 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Pasword expiration warning To: songjinzhou , Japin Li , Gilles Darold Cc: PostgreSQL Hackers , Andrew Dunstan , "Bossart, Nathan" , Tom Lane References: <129bcfbf-47a6-e58a-190a-62fc21a17d03@migops.com> <3046422.1637337334@sss.pgh.pa.us> <3ea14054-af0c-3f21-0ced-04c896438bdc@dunslane.net> <08e09a01-5762-3b2e-1fa7-513478ab7394@migops.com> Content-Language: en-US From: Gilles Darold In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Le 07/01/2026 à 09:37, songjinzhou a écrit : > 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@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@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@localhost:~/test/bin]$ > > > Thanks > > songjinzhou > tsinghualucky912@foxmail.com > I'm not in favor of a higher granularity like explained in my previous answer, I don't see it as a countdown to the second. But why not if there's more people in favor of a more detailed remaining time, your improvement will be welcome.