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 1vskuN-000bMa-2h for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Feb 2026 17:00:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vsktN-00Gv0t-2g for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Feb 2026 16:59:13 +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 1vsktN-00Gv0l-1N for pgsql-hackers@lists.postgresql.org; Wed, 18 Feb 2026 16:59:13 +0000 Received: from mail-yw1-x1129.google.com ([2607:f8b0:4864:20::1129]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vsktL-00000001OOW-1nk2 for pgsql-hackers@lists.postgresql.org; Wed, 18 Feb 2026 16:59:13 +0000 Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-79801df3e42so1579957b3.0 for ; Wed, 18 Feb 2026 08:59:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771433950; cv=none; d=google.com; s=arc-20240605; b=ju73gJHODzmutS2xha0nzOqtWX9bP+ldwXrCnQ3xKST5uoRaeLY/YZVzrYy0WRnIU2 SDM6N5j5mWRZXCmr+6TV28Tl+4mQOLLY0hr3ZrauvNKGCV1nBHo0konklcAHeWh2/D36 Q2UrViJigXXXCuOO7THNg48ia9qtQTw/j46XQapwHCSJ4vaLgZX77o9VBb8HPVokhB51 rPs9gfCw4i8zP2wkl+zKoIwX9sYgfeDwoUxb7zxehsbNaxlBVXRTavz/jnGHqV1CBFNp bk1J1dAqlTuxXs2jN8jx7UofECzZETA34uNi1ZYVrW0wgpXSn8sAOXMEGqQU4+hwZ9g7 FtyQ== 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=vV3m9Y4WJ/jnXA6bbvThDxBKi0WalgncOzJvHAc+WO4=; fh=91ijHbQDv1mBvEXwmiiZILvSP/JhBPvgLiihK1dixJY=; b=WfL4tSeoK+vDPpl8yPdVHdLIHGWF3xkhaRI/W7BWNx1s9xe4wYKRpO+qCGkMvryJW7 XyV5Q5a7E2mhHt7snnCtax59YrO1PkaX0wtq/BPTw+H6rXiQDWZXLKCJm834DZQbxZ0c gQxf2sqDQB8zbUkkl0n+AAMRQc5OxBoa2yynhef07H9X5WxumD8q8JPMz/mWCPsEcbJk 8YNNh5wC6LrkuXqfoFq/MoVBms+rKON1wuiO+FmCtWNg0BRPm3ujHiRS+F5mEU/IHYmX uBT/wN+n52EqIEHDVIZLUHsAjchMzdrn+5J6wDJGItLe/8/PG1gEFkSkfYOgqohoREbH pAoA==; darn=lists.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=1771433950; x=1772038750; darn=lists.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=vV3m9Y4WJ/jnXA6bbvThDxBKi0WalgncOzJvHAc+WO4=; b=AJXe2/A4JBINK3WQc/umuSMznedW10aK3pbhvqFNe0Vdqc/kpPxsjItbIrAzsHQ9F7 eX8u7m7czFTuLGJMTuL8YgNRbZew9Psn9AHKyTffuwbXE8nXIICuVzZdGZ5bFq0EiV1W 8G0bLfC49hF6nD5OOvLaJghi9mZqRbOfnHoUM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771433950; x=1772038750; 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=vV3m9Y4WJ/jnXA6bbvThDxBKi0WalgncOzJvHAc+WO4=; b=KEnXS5sK0I8V3AONWVNvxB+xI/GOb6jQv1aVezxOqDf4XcxYw+wDCbyyyKHydp11mK dcjkR8hyQfnhvn6LWIV2SgBizN5IRKm3Fi5uP0mzyHFzURU1HzVBZbPturH7u4RGBUBi 2pkj7GjXnsMi7cBsXKPdSLC/yR3CyVEojlyWtzC9LDJL8v0DbJyL9YKURdmvcjRktFFV DyNsNtGt2s+QbcpZa2rjyNmAia3bSvs6BJQhihy49tiK9mz965J569dA85nHziiSjttj wSEhShyHLY7WtLhpKdHEX64X+mk3OLYfBajgr1CsbbZDtwfI7pmqfKXJXyr6thgntrFV TTTg== X-Forwarded-Encrypted: i=1; AJvYcCXcs85UQlLd/Z57AEJbu3pudqVtG8fh8MkyoSg4k2b1ka9B8o7zNLoG4lD3cgaage0obsf3U+j/4FqVeWWM@lists.postgresql.org X-Gm-Message-State: AOJu0YyBSlMvrYdLclZQ0oZttFJyWt6ZkbKgx7C3/VMHac1JatT706NU k2mZtrwL4Wj3eb8K1dm6kY7WgOpKCQG2jIfKeBulDiJDk6gET1TLNfZmswBbaKy8XPjgpYBRJEY VkiOAWbJmknOAyIEtrR7xGTV86yxtFuw/Aq6ws2TosDm0yKVanbZKfePMTvQf/+odet3gM4lqY5 Huj93AA6CpWFXvwrfdfDXXCrZW/9rXFL7MVHxejliiFCwOryBd/y3iJus+RI0GXZDEdCploPmrH aWO/ZeJy7OCXvg2xI2mI51luQbJMlo6emQHw+QQrQet3wQ6E8n1aettRxGwlucA/xI= X-Gm-Gg: AZuq6aIF6CXsH04UKWYaOOPkZnvwG3fx3k3/6bvQ8B4TitqWQ2LN5JDpsfX7bYTEi08 0DZ+HhvW5lozmsmQ8IA2mN9XrFaUKokFNntVxXS0Zu0b8faTVppwTwbRvINu8E17yG/h/zQYUau wtwjSlCOtY3OYCb+092tXTLKXjEOCVCEN9nu0D8ebZXmsWHJFBloXKpldRPBXii16v9owa0VIGs oB8qqwOFPD+GLbce5pAzsIDymIg4fL4qa1kZeBY8gJKtDJHjvqs5HYh6fcPqJmVuQpTRYOGm4eQ iA7UnFB7kbc+FNWpO+rq31V+tLvRFvy2L88zE6TlZZB92s3wIlasl7WVVsYAq0Ycy+W1 X-Received: by 2002:a05:690c:102:b0:797:ce9d:5c9e with SMTP id 00721157ae682-797f6fa0285mr21392127b3.10.1771433949688; Wed, 18 Feb 2026 08:59:09 -0800 (PST) MIME-Version: 1.0 References: <7F3C1A8B-F0FF-49BF-A53C-DC043BBB1FE7@yesql.se> In-Reply-To: <7F3C1A8B-F0FF-49BF-A53C-DC043BBB1FE7@yesql.se> From: Zsolt Parragi Date: Wed, 18 Feb 2026 16:58:58 +0000 X-Gm-Features: AaiRm51Kx8sCl2fWxEjQKjo6kvrEARxCby0pznQ66UtId0ONBhixvqZdF7r3fBY Message-ID: Subject: Re: [OAuth2] Infrastructure for tracking token expiry time To: Daniel Gustafsson Cc: Ajit Awekar , VASUKI M , PostgreSQL Hackers 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 > but I still think that neither should overload > what FATAL error means I see, I misunderstood what you meant by graceful there. In this case, this is also a good comment for the password expiration thread, currently that also uses FATAL errors for terminating a connection when the password expires. What other option do you see? Something new for this use case like GoAway, and clients not understanding it simply get disconnected after some grace period? Or using the recently merged connectionWarning to send a warning to the client, and disconnect it shortly if it doesn't do anything to fix the situation? When I tested the password expiration patch I noticed that deleted users who still have remaining active connections currently get ERRORs for every statement that requires permission checks, so in this regard using ERROR/FATAL for the situation seemed fine to me - it's similar to what already happens in some edge cases with authentication.