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 1vla07-000yFm-37 for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Jan 2026 21:56:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vla06-001Mwy-0A for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Jan 2026 21:56:30 +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 1vla05-001Mwq-2L for pgsql-hackers@lists.postgresql.org; Thu, 29 Jan 2026 21:56:30 +0000 Received: from mail-oi1-x229.google.com ([2607:f8b0:4864:20::229]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vla04-00024L-12 for pgsql-hackers@postgresql.org; Thu, 29 Jan 2026 21:56:29 +0000 Received: by mail-oi1-x229.google.com with SMTP id 5614622812f47-45c7c841904so936529b6e.3 for ; Thu, 29 Jan 2026 13:56:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1769723788; x=1770328588; 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=DPR8UrOefKJyDcdnIFHx523aISZy2e62AbeAn9H/x3k=; b=OsiETVH6fsiNLlnrlOlsQ8e33BoAfYxS4MZZzUAWmjG3VCBGaTsxyuZVKKfhj9tFdM cREHUsEkIY8/GOICaXs8s5t9EHw3q3F9nJ5HuJ8ZO+JsbhtbKTDXmbYixPggg9kftNA4 oFghb5LkTqORqKxq0E9P1amCj6drGSUNgH0MTxHb8zzLg9MRFT6nNkPK07bJO2oJXxV3 PniVKJGLcrHZcMDl0E9BjHWXwdAUuEIGSmbR2s93jrpKygAuvrwJ/zCU4LHU7D+uMlkO HYutTFmvuRHSSyALUYEPOHfMOuzNW5fp0CXd5SVdaZqKnR3Zlbsua0tRLweo8HXucBZa wfBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769723788; x=1770328588; 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=DPR8UrOefKJyDcdnIFHx523aISZy2e62AbeAn9H/x3k=; b=w7URppwuVHrYcXfZpMRGJ+/WD1UvXcs/hZRfD5GwO0ps3MVlGZpk4NHrg5jKQrQ1qj ljIiuFvgCK7zlDrX5Z1D+YPZ2UvTH8AE/1VQ9gcES8HQ3M3KxkDv2flzUM7Ko1S9/34g BitRUZfpWV/ofnGaHmOPS8hsS0NvzldUcLrav3avGRrgKuzijmx37+EUEENYikV1W8BF Zq/Ya7wcG1QVCjxihvCy/ddBD0NDhUjJAE7EgHWcwxrOZLKFn/6JUDorLHO6Pma4NN5u 9CSEFeE4XQfdZNPOJwq63mgtrN1QFuyUoKnpVRNYXV7q93fD7vm/AMO16XlCkCdx8Ldt 08gw== X-Forwarded-Encrypted: i=1; AJvYcCW7u1h/W06DAYHZmOivw4PEzIykNqdTRU9bQyjdYv24Ar/KoGZy6saYP7ZnXiCLsxCXQsZ5Sb0aZKIBQ+s6@postgresql.org X-Gm-Message-State: AOJu0Yy54G3P4YhB3LrFxHajZKyF2Tvc/d6lstAoTPuEfzl1MsbvFAyA lAub4rKqBOE8zB0tmmBg9WKyceroyRwprLRBjcTN8D4DT3KQmRx3IiHH X-Gm-Gg: AZuq6aILlGR0qvLITDp0sVIjtS7RuAh5FHezNMvmU8faWZtp2gwpyPJrlv3ReJhdjrB NmTGmpk+j1XN3BlGMT5pEgss4KjHxGtIym52Hu6aN+1TxQQUh66fDvjTTzvWv5gn8i2G9ZSgL0r dZkRF+YsMVi1KXhvWLyOgXI8bqVTevCsmP9xp0Pe1HerYwtdX5TYUnwq5sfvYO/DcqKBQFn7uFu X2JDRuqNt9iTQT4JsEVw2rprRkmXBvIN8A1G7vGVJpPl6E02IWNAZqSeSfAqVsZ34EXiRV5+GF2 FsHn2CoJZqwiKKmN7kSyhORosrZXus7YuzYkaZGjD4yRu872X0UyugXJCN3bMrRX+/04kbVY5lz SgGaZpULS17hbBIUcD9fa9iyN9WGyz2bzKZEsBbV+leABcxzXYdj0TCiYfga/Pgg478D5XeJaj3 ZqF6IFzA7i5b8+IG3/mlOCsC1ppJuqKWQwMZVEhvivlSHLmNnDjpc2HzOsgck+p6EpzHsMee7cr wlo X-Received: by 2002:a05:6820:f014:b0:662:fa38:ed4f with SMTP id 006d021491bc7-6630f02c633mr545775eaf.23.1769723788184; Thu, 29 Jan 2026 13:56:28 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-40956cd8290sm4563101fac.0.2026.01.29.13.56.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jan 2026 13:56:27 -0800 (PST) Date: Thu, 29 Jan 2026 15:56:25 -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: <6eca3872-18e2-4692-851a-14d1bea30760@darold.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6eca3872-18e2-4692-851a-14d1bea30760@darold.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Jan 29, 2026 at 10:48:39PM +0100, Gilles Darold wrote: > Le 29/01/2026 à 18:53, Nathan Bossart a écrit : >> Having a variable for warning messages could come in handy later. For >> example, we might add a warning about using MD5 passwords at some point. >> In my draft patch for this [0], I put the warning after closing the >> transaction, whereas this patch puts it just before. I'm not sure I had a >> principled reason for doing so, but it's an interesting difference between >> the two patches. > > Understood, I will rewrite the patch to use a int variable. Sorry if my note was not clear, but I didn't mean to suggest rewriting anything here. I thought the difference in placement for the warning between your patch and mine was interesting, but I'm not sure there's anything wrong that needs to be changed. -- nathan