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 1vmy9v-000l9Y-04 for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Feb 2026 17:56:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vmy8t-000khr-2f for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Feb 2026 17:55:19 +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 1vmy8t-000khi-1f for pgsql-hackers@lists.postgresql.org; Mon, 02 Feb 2026 17:55:19 +0000 Received: from mail-oo1-xc2d.google.com ([2607:f8b0:4864:20::c2d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vmy8r-00000000Dco-2gbq for pgsql-hackers@postgresql.org; Mon, 02 Feb 2026 17:55:18 +0000 Received: by mail-oo1-xc2d.google.com with SMTP id 006d021491bc7-662f74f653bso2676034eaf.3 for ; Mon, 02 Feb 2026 09:55:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1770054917; x=1770659717; darn=postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=ovkowdD7mmIyRyflM2v2hceB5igZSWhLgthqI2Gr0B8=; b=W3xxyN5pY19mSvzbSeqUoU31VFISr0RwTkyFA7NhpS1Kqf5+AbfVODocETwLCu8Uih YR9HNhMwBjzAW38X+Igl4U2+axJhjOhdrkjUZw6+jQFtrJ1O2/GDBSUjF4JKD/iib7rk ClYUKU9fFrV2jIDUOwUS5D9HRlbQGD4MZ7vZfxf/RsiqDXMyvCllRh6DnDO1CEhQzXd2 WHVow3LaMXyZ17paPbHmEhuUUYUlfUiw95B7fLDDqjytpWTRPYc2kMBHfKQN2AsWr65P AlP+D2yAXTKLuyPTdxrd+kf2wFb7MkINAMVtAv9Ya54D7jzJj9rRJS9kQlcRhw7s4KOi JCYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770054917; x=1770659717; h=in-reply-to:content-transfer-encoding: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=ovkowdD7mmIyRyflM2v2hceB5igZSWhLgthqI2Gr0B8=; b=MJyYZsGVEfRzAAEkdrAqIxMMqKrZ/gfMfzxJY1vhM0Oss5eSMePKbMskQdxA+y8uSu nam9wZbw/nOubJude7PSCdjZrkhNkHrK9DZ/bY9XEx4gRaJCaiSkuisFF5KXG64fwmEF OLMduaabf1TOBAajusuIG4IsF8xWbyfLd4I5v65/CsKyJXL9QAbyO9Y9tXDdcjB60de+ O+8ymMNAEd8yLWqsCs5SG0TpMZqnTkSMB7hcf6vY+JbzLOK4URz44JVl9RrzskLTFFzK m9bV8p0isseKC97pK33zxRineLBwxJlTllADtpF0XTeOY50Pu3kQ2ZVFUjMdU7LN6jUP 3ZVQ== X-Forwarded-Encrypted: i=1; AJvYcCXTKOvRk5R1oCl8Q/vO1bwAoHvWuDsR/BTLMJWACAvLe6zP0GmpNF1UlFdhHfotr70OLFJZ0MooaK9aifjH@postgresql.org X-Gm-Message-State: AOJu0YyL82VocD1NlNP7w8j971wlW67xv0UEzQUG36y4VcmaF4L+SWiM pusD5o8uXn/JljRXWikgxDgkzpQ7FNucayDvsg1WcHkty63ADK1fhID/ X-Gm-Gg: AZuq6aJGuQ5fCZFWWyVHb5Q5GCEakMBNdRjCXT03o7QoyIm0JFD33OEtIZx+WNGc9vS gClMe82BYN3W/W7ui+ykq/PXfjUgbJVUz+ds3hY0hSS9dLBylg5SXr6lSWpQy/99XNEJKBc6hmV k/GVqk2epER7GxkZQK79BzIce0bO5QAFXo/sVFdLsWM+7OCxyoYJOlHXKQgb1KXlrfYBqb0HkxI lrZ4yp0G0Q6Sa2wrViKo3quo2rRSafMQkr05N+Ak/4eThoWAJQr2tlhnKc1VLjCLKaXam2vm9f7 j8IbefrzBVd3VXi/sWNWJMVI9AgQvcFRrV9MVTifeaE9KrLAo/7y8WlN76lVHF8kMVn0E5gI8il AKWGz+UF9mkzPRjpaAd0b7aWo89yvWZkXw7PiuvM4/epQ/+btE+PhKrPpdNPK8JvIw7wjjzZkYl V0PIWcvkP50InUZoMKbv3EG694NmOE+bAtuwV3llNaTN7Q4p/+nqGaVsnwlDCvQftl+aRv0e53j EQV X-Received: by 2002:a05:6820:4dfb:b0:662:c22f:b975 with SMTP id 006d021491bc7-6630f0043cemr5942131eaf.5.1770054916875; Mon, 02 Feb 2026 09:55:16 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-662f996216asm10177976eaf.6.2026.02.02.09.55.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Feb 2026 09:55:16 -0800 (PST) Date: Mon, 2 Feb 2026 11:55:14 -0600 From: Nathan Bossart To: Gilles Darold Cc: Zsolt Parragi , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Feb 02, 2026 at 06:43:28PM +0100, Gilles Darold wrote: > I think configuration name password_expiration_warning_threshold is too > long, why not only password_warning_threshold?  I think the description is > here to explain more the configuration directive. I agree that it's long, but leaving out "expiration" makes the name rather ambiguous. FWIW we do have 3 other GUCs with lengths >= this (max_parallel_apply_workers_per_subscription, ssl_passphrase_command_supports_reload, and autovacuum_vacuum_insert_scale_factor). > About the unit, I think using minutes is useless. It should be set in days > to be really useful but like all other time based directives it can be set > in seconds, minutes or hours too. This give the user the granularity he > wants. The common use will be to set it using 'Nd' syntax but if someone > wants to use 'Ns' syntax, it can be done. Not all time-based GUCs use seconds. log_rotation_age and wal_summary_keep_time use minutes, and many others using milliseconds. But I'm fine with changing it back to seconds. That would still allow setting the threshold up to ~68 years, which ought to be enough for anyone. -- nathan