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 1vi82s-00Fnuz-0R for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Jan 2026 09:29:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vi82r-00HZUS-0p for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Jan 2026 09:29:05 +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 1vi82q-00HZUD-2v for pgsql-hackers@lists.postgresql.org; Tue, 20 Jan 2026 09:29:05 +0000 Received: from mail-yw1-x112a.google.com ([2607:f8b0:4864:20::112a]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vi82n-001Ub7-0T for pgsql-hackers@postgresql.org; Tue, 20 Jan 2026 09:29:03 +0000 Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-79407df9391so5288767b3.1 for ; Tue, 20 Jan 2026 01:29:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1768901340; cv=none; d=google.com; s=arc-20240605; b=cLdf6/hPjmUC2gET6YqVsa5+H2kL8PLYr8GioXLtQaFS3upHJ40G/IOKR98W+o1K5a U1oPc1sILLgwi+sNvRkENJD/xtQa+9zZZ/W/4Lrjod2A1uA9BxW6An+MmgTryXe6HRWU 2mDR1VSR7HF+JbLO79hlAy8QF/Zb+LemVqSSmOGp/oz7i7xtw39jy+fvwWOGXuRn0Yat 6Rj8MOFGo4NFD1SDzozo30xz64Rzhvw214qHsLcEgdoh1udtnw61e69wXgxzUpcV+gt8 THhQT5wxTncMg48NeXev43LPE/9IrHzxbp1HTVmIFRkEs4kq4IzbO0R7Fo0TInEmX0L8 9xnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=Nd4OG13/SW/0DyddOPfWYBjtnaGyGjsBp+nA3KI+nYk=; fh=r6u2cd0vMqq8Jp6XRENtBwY//5FXHWIP/BTIRMj3NG8=; b=PZCwcN1z1pqGj+DyF1s7ddf3Gf5/zvQidAQB72M2b0SLyUt0dbAtXPilrwMKeJHY98 em8PS2UkewlBVGg57/9zfMdfYjkYNMr0fCuUYhqttYSvoKGJSFpmvXj9l4yVeXXq5nQX IC83tCLat8V35D45qAHWtCuxxrb4j0m0Lv1Llqdcs1KhoTxthPYWR9N1wy9qAELp8xuo kS0AwkJUy82ZUgdKj7nMor1KmaoKhHInp2s1K889nzsISypBn3mwPW/9o/vZqktM40C2 VNJRjD/DPfbF2V76gm8BYhkhnlLGUebo7GWXTTSWWo86/GePCKWPELK+GHaayl6FeO9H GstA==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=percona.com; s=google; t=1768901340; x=1769506140; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Nd4OG13/SW/0DyddOPfWYBjtnaGyGjsBp+nA3KI+nYk=; b=Y2qRxQh4MXXs2Eop90t7JvihGCq0GgpKMNPmFCf6GjuTZYv0pWAEdesg0esFbOfTyP AfQThd3CiUJY+yHszSFAiQTKOgwkjrFSMK6wkdPz8OPDOHOAT142Tb1EdWiVygfULOSq XYZbF2PNjghTDDTB9WaKQfBnA6GSHB/saaxsE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768901340; x=1769506140; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Nd4OG13/SW/0DyddOPfWYBjtnaGyGjsBp+nA3KI+nYk=; b=WNLmFcfwSMExwVDgUoSr2tdtxSzjaoSDeYuXBt0Ke6/PO/LADjIJoxOCivhYppX+Ts KxYal2P7pgQvXoXAUZqSBRlfJrg6hW49TUHk9qzUnpDSLx16hFXOcDQt2L3TB4Z9cuZF xa4jbiOTAceBsFMoyjpSmsb4/6w0l+eAbIDDYYcB1GTh0a+t9B9bsZUAWUcG6dVm4ErZ Wz1wL5fGOw3t8cprlPiasmKzz6mMVRItEq+4y7v9FtnUSai3Z/NLmscudgMaaQKe567D qtrJaJFvIdnHfR9L7D8G+rsU6N/h/oPyLjMeOqniNFrwwT+xALLviPnhDRPYDCvmJR53 VBfA== X-Forwarded-Encrypted: i=1; AJvYcCWsHur9unl0z+ZZY0WjsjqdJ6VK4G3TGkrp4dDPSdaP8ZgSSgGW4iZtNNl22YgBMQggqk/+XYacZaK/pK3p@postgresql.org X-Gm-Message-State: AOJu0Yy23gB4C8nHS4Ew5l9DIVfPyhFhjdIz+nI810v8IwbOhXheOr+c niDH4oj8aSLsK5dIhXolDYpP2qi4QaU6fpdCvklL99ilRk2N1KxEWcH6h54gytiAxr3HOigirki 9GsmvGcrNlPhbvZXSMdvWeZ6LrgYvcOG3TIyX8qY948h8VIZWTz1ktQtXAMNC1AexV/JEUXeLGV xq/S3KgdTdxyUuR3dr9edjxYfqQ+uhHAXGZUacqZGIGEF2PaNqU+tYNqD2jvH492x3MYwzyflSH 8nwCYNoiO3MgE9EQ2FSK62962wNrOF7Xv7r6Atii9dZXbvMNNY= X-Gm-Gg: AZuq6aJINWtYH63s92IErMp87g8e/41pzp2NC3TTiYvV5G83LFieWQjPIPaC1Gix0Tk bCsStPGvCaQi/rOA+eFnWdG5gw9VD5BLsMKAj9G1A76Ka+quLKkCImUDhnVA3RWD4Pyw1EzytiQ vMg9xE4fBXrm3lr9KeQfwwrwiQeKuvvDnArt1mqpRXRFvnELmsBmPfDe/bDdm5V2Zrwfx2HlA+h Btt0rm4xpO0Xkp9ZSaMLAyx6KGkmzeWZu/AcQ14uBwckc8FjZ4hCpeP4KIvj3Xis7pEK3COqFmv JFm3jEHafQdayz0yN0Naqt0CAujNNtZGOkWpRjMqZ+WLeVgVbu7jFLcjU7/5I2i3sC4= X-Received: by 2002:a05:690c:c86:b0:792:7541:a3c7 with SMTP id 00721157ae682-793c6890f1cmr120552357b3.67.1768901339753; Tue, 20 Jan 2026 01:28:59 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Zsolt Parragi Date: Tue, 20 Jan 2026 09:28:50 +0000 X-Gm-Features: AZwV_QgwZIkTRx_b8AUpCfpUdAcl8abv5aBOprtcAS3J72qJQHh2afNJUY2qzJQ Message-ID: Subject: Re: Periodic authorization expiration checks using GoAway message To: Ajit Awekar Cc: Jacob Champion , Jelte Fennema-Nio , Hannu Krosing , PostgreSQL-development , Dave Cramer , Heikki Linnakangas Content-Type: text/plain; charset="UTF-8" X-CLOUD-SEC-AV-Sent: true X-CLOUD-SEC-AV-Info: percona,google_mail,monitor X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello! I noticed a few things in the patch, please consider the following: postgres.c:1076: elsewhere password_valid_until_timestamp is set to 0 when NULL, won't that result in unintended disconnection for users? postgres.c:99: it only checks the expiration in exec_simple_query, shouldn't it also be part of other methods (like exec_execute_message)? postgres.c:179: isn't the sys_cache_register_callback variable name a bit too generic, shouldn't it have a more specific name related to password expiration / authentication? postgres.c:1082: the errhint text should have a period at the end. postgres.c:4185: The comment for CheckPasswordExpiration says that the function terminates the connection with FATAL, but the termination is actually at the call site at line 1077. Maybe it would be better to move that if/error inside the function, as the comment explains?