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 1wRR5g-002LGD-0Y for pgsql-bugs@arkaria.postgresql.org; Mon, 25 May 2026 08:55: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 1wRR4e-000uGo-0J for pgsql-bugs@arkaria.postgresql.org; Mon, 25 May 2026 08:54:13 +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 1wRR4d-000uGg-1m for pgsql-bugs@lists.postgresql.org; Mon, 25 May 2026 08:54:12 +0000 Received: from mail-oa1-x2f.google.com ([2001:4860:4864:20::2f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wRR4c-00000000g1Y-2Lp7 for pgsql-bugs@lists.postgresql.org; Mon, 25 May 2026 08:54:11 +0000 Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-43a86d544c2so4447204fac.0 for ; Mon, 25 May 2026 01:54:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779699250; cv=none; d=google.com; s=arc-20240605; b=WXBnT8flfzsgwbIrxJhE6qOcgJg/R8f2KMjczjtO9/L6qxUzpNSLFYZqVh5WM5k8Q4 /S/FE/EICxgFtkaoNpcyqaTyrGRCAes5ULhF6c7bv3yUYwvT9ME/ormmyuTTpdPl4Oka RrJTJgx6U0Q2f2u8iMewRA6ifWlZrsax5/2YYETGuEbIhFqrz4ufQk+LpEH+JoK1+LBr FosM6BMEBcPB0Pe+13qvakhy/1mkbUDSBwYOnq1NEGRVyaB/dVsng42BgMY6Dg/OF9d0 89NZ7VjaLBxcQHSZIU/N/YXq9DtKWJU6xuUrFozR7roTSiY0fScWz+9GG4Moi1SRrkCd u8Qw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=g97QKOwk9yIfh4mS0dbInvKuh4+3hNRyrLMZJu5bukk=; fh=wezk+N0XtZbn9f8RQ40+sCTy3eIPoE8qTpardfEB4bo=; b=Zt2aaURaYxkEH8bAPXafwEogFOws2J/XwinPh1xBiXUzQ+o1876gz1QuCueY+UcH5m FMA8IAGWz80gHPpYV7F1mQqToHIIKxF9ieA40cQiWJiuRCm84sJmSXx8w2yq3rGWlpZF LuuTtshHNLJa+fErSw5Qe9CtQCY3KjwoRmorHo0xHuSJA68i863wKJhgjKq+h0V5cRQ6 /vvilb9/JxvCQ38Ajoq0krN7F/c8o0uy29SniQsNALdregcpxMjp9gW7g6KHQF0sXIWF E2Pv8+gJQ+XBSsUxvvE6Q6sS8ow7V3uwEOQrEUXFi1dvd7IlOc+0YtJuV3OEGc1Vbi42 CjiA==; 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=gmail.com; s=20251104; t=1779699250; x=1780304050; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=g97QKOwk9yIfh4mS0dbInvKuh4+3hNRyrLMZJu5bukk=; b=rdQqmKnclM0I05qc4j42MmR97cMcp+d4W/JKJOzTPxFy2exzgKwMnmAHkk4DZ1GIv+ otZkaXURIuEgjFmpUo2j6xr3Faxam/yQPm03DqVgddmlZjQdGnC/ZGZbt+iSfCV9KyhL vCVUVEFOzSIHfZsarG8NBsj2xTiCX/aJXku70HESdD/8DbMKcIsvGC2nx6S/Lyt6nd3f NY9iu52GOxYYs2WBkZLYRciZJ6SRerd82ikHSy7ciddMCULjDiLhhOa2wUe0i1roEY+W JIuU2s6ENDHueBPE4ryPSeAEkuMvPo4x/Av7k0TNhY2dgPPxLSF+3m2jqLr4/XsA72Af PcHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779699250; x=1780304050; h=content-transfer-encoding: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=g97QKOwk9yIfh4mS0dbInvKuh4+3hNRyrLMZJu5bukk=; b=grZuT7rUyQUNjhBC1/BJHRVhXZTR1WnGcPsGYBTkeER8ON/kTuRyww7ewu1gaitqI+ 54gYtAL/si9xY1uId8OW/WmEtqp3yVuZ56KSo+Z+lQu0uuId+qpoAx2CFUc0YAwWOZF7 oGt5Vr30IB4ZFPJ7FBBiGI9wNi2IhiWbQp9DbRr6Hjfn/jdJelTD4ttqbtkSJSpmwrOZ Pn5bB1HDPhL+T8bdSf5jgMq+/lPL2Sc0hgVgyAqJ0VJ9U0bQUozMM5vif2O4aEoZ3tJ0 r9SoO2WX/dc92pW4FG+1LDcy17+uO0kvn2v5pks5aa8LXw7d63C7iZWvKgKSE2U38/GY bDDw== X-Forwarded-Encrypted: i=1; AFNElJ+p7m13xIFBbd9pbHL3DMYqzA/OxRfOR3h6/pYprVlxqPx7J2Va/Gl08ORJOohC7W7AjGt8iIyS6y1V@lists.postgresql.org X-Gm-Message-State: AOJu0YzYm9a1op2xz3rAP5Gd13AcKCr9GDwqedmeuwsX8MliDGdyz87y kyF0r46KhSjvLjeg0tXIzq/sj5Gl1go/TLIhV/BkpZLe3qcM/mllQvkp1ZDa38093ZhoFAWAdLw etPs5ZZXCN0WbFQdF9fG8ezQLjfs1wF8= X-Gm-Gg: Acq92OFQXszWeiTRkf5/gkOQx3lRTo+lM2UDdzMa9zAD6JlHoXfn3ZUsOHr2qncSNa5 1mRfl8u9rtJIIHxF7z/BiYtoX+FH4I4pCgxkGtj7Ehsw4WYUKHEzgn+dD8moDAO+NuCrj+xFFPy crNz36WDh0B3LQtH/y0zUwAyy07vgtSZSqB3r8g+HSRAXTaW5hlrS9TNxcv06ZDSvy4p2eZ0J73 x+RFEPN3bffdURF9LwtTmKBEp30Q4uOVNR/N9GG/Q8mDevpqGNMv0lYUtmuCgHRUwa2Iag23T6H SjqCGi14vEPyqz+CoDt0YhRQ+vqXIg7d3ZDwFQdOCh2cfan5vPiw6kzFVzeAmljhXULlL4Z/22R oqwZNzU8= X-Received: by 2002:a05:6820:2dcb:b0:69d:7b82:3ce4 with SMTP id 006d021491bc7-69d7ec4a11amr5543807eaf.31.1779699249731; Mon, 25 May 2026 01:54:09 -0700 (PDT) MIME-Version: 1.0 References: <19488-d7ccfca2bf6b74b0@postgresql.org> In-Reply-To: From: Alexander Korotkov Date: Mon, 25 May 2026 11:53:57 +0300 X-Gm-Features: AVHnY4IulgYDnrcCqJurSpxLIApywJrl0QlpyRQl9jp_3XtKjg4K5dR_zdMeY1I Message-ID: Subject: Re: BUG #19488: Standby connection fails after dropping on login event trigger enabled always To: Ayush Tiwari Cc: Fujii Masao , kyzevan23@mail.ru, pgsql-bugs@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, May 21, 2026 at 2:48=E2=80=AFPM Ayush Tiwari wrote: > On Thu, 21 May 2026 at 17:01, Alexander Korotkov w= rote: >> >> >> I suggest another approach. Create a separate test database and apply >> event trigger on it. wait_for_catchup() and others use 'postgres' >> database and wouldn't touch our test database. >> I also added check for successful clearance of the flag on both >> primary and standby. One issue spotted there: in-place heap update >> doesn't issue a WAL flush. But I think that's minor, WAL could be >> flushed by any subsequent operation. > > > I agree the approach you are suggesting is better. > > Patch looks good to me! Thank you. I'm going to push and backpatch it if no objections. ------ Regards, Alexander Korotkov Supabase