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 1wQ1tU-001EQ7-0Q for pgsql-bugs@arkaria.postgresql.org; Thu, 21 May 2026 11:48:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wQ1tQ-00A102-2T for pgsql-bugs@arkaria.postgresql.org; Thu, 21 May 2026 11:48:49 +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 1wQ1tQ-00A0zu-11 for pgsql-bugs@lists.postgresql.org; Thu, 21 May 2026 11:48:49 +0000 Received: from mail-yw1-x1132.google.com ([2607:f8b0:4864:20::1132]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wQ1tO-000000005kX-2PeC for pgsql-bugs@lists.postgresql.org; Thu, 21 May 2026 11:48:47 +0000 Received: by mail-yw1-x1132.google.com with SMTP id 00721157ae682-7bf0b1a47b1so59632047b3.0 for ; Thu, 21 May 2026 04:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779364126; cv=none; d=google.com; s=arc-20240605; b=da9NhP9KRiqN77F3VTyieDm0/WLYbB91SYZQdqaDGToXeseubzKD8IPxQZF6fP+VhH tEXGIlv5es/2xSnheZNSO1mN1qD3dr0YJ6Czw1qsWqNpYQ0EQtt7zBrtL8iYvaPeU6gT wcDWt+ZcnZxXrFTFNZj8NhUqfxMjAFbM98pnivIb202qplXO3Bx92I55Ot93l4Ux1lpN rtfKgYT3Zj34K43nRpsiorb0SIUJE5EsPTh/PXhd3SUj578JAKrbmFhCbk2I6JQvSznp 1qDE2EH3FBLCYUTRFcVhc1b36vpV0Dr3SGNn8NT0RVTATlCq3dmoIAXIWxlKDnSyEw80 SvEg== 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=5yzT8licMwIAmkGEfowS9Ise0yUcvDQ/4Nm2LNc7bHA=; fh=EKaPNUnZBqqWDFjt41pi+/dkltT08n2skAU/bTFg/PM=; b=WiGbiPnOX8HpguLK5CoRvETfOGxXMsAX6MBcxI07kbkOADCnxuxjPRQglDox8i4V/a lDQ5pl64sHdwOOpwGX/yTrja88mec7hoZfOtJXJ9QXDt61ot3WrvacmN45r8pcqqUWT0 yM16T/u5ftBoxsw48rbpKr4O+jnt5XRsIgnqgngbgmkpnhIwtULwBGnFzAEPINywwDbC snGDlRGWRyJ0BUS3T5k2TBnsZfYk25apAe9ew/DsWPdVjZs+l6MltiYHkNx2DuqbPnBR e4gFGxaBG/QzQrKn+8/4MLY1fy26CBOclZ1OdfjhekPjhYWl1CrpmaDJsM2auLgBf9G8 479Q==; 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=1779364126; x=1779968926; 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=5yzT8licMwIAmkGEfowS9Ise0yUcvDQ/4Nm2LNc7bHA=; b=jT2x4azMF+BEADxctTWo9Kap+EJahqO08cuqbUJrA42flucNEY3zSzG90WmoRhYkIj UIcFy1E/pEZX/3sdjRsvZz+8mXzpqg/PWRvPzkTph2gUg10rOgKVcjWiJ9Hh2TwCWh09 rLcm9wQj9GKvLTIR/vIyZtAL/LBEliscMb6RahkhzwKkdhTSZbqWZrUIG1rX7IMk0dQ3 Ih4dh2jzIAkP3sFu+WN5g6RRT/+S//owdgxxcni0+IncSj507PmHOHY0PnGKF0wpsNva tzQVQJOhW5pdtB78WeRm4cGwhjFdvUJtN5me7fEcedKnlY1r7E92d9Hqj5hkp7nW+QZb 9ZOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779364126; x=1779968926; 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=5yzT8licMwIAmkGEfowS9Ise0yUcvDQ/4Nm2LNc7bHA=; b=dKNlDOCPEqZFwsX51qb6cNLK7KqzkpJfueHxRA4ZfZCRwAyxDRZy7SlhKpBujpVDk7 rvEgxwNhc/ZKKYuTVYUyEK7I9Uf2ncAF0dsnSlhRXSzEDlxMN3K0gCXJ73MLCMaLoKkJ FJcFMlClG5RpMhn6CumwHBmXoZcXtkUn6O6BigOkOV0xHRyBdauZ03Sj+4ptrPNx0KeZ tdBEE9fNAMwur+JDjPqRGv3yBwRITAtTisx/4HiBiFRM98lfKYayVf2RUUCzlZTu0ewM KEv2AGVzQjmYE6mfPPgoKGFc1REcnHKO30WTXEny3DabTJXtzgReMmAKq+Ta/DOCts5j Cz7g== X-Forwarded-Encrypted: i=1; AFNElJ8PoAfJKe1XgDFV+3sUtscrU40C7EP6B1A83EMJFLNSW9KiVwQpABlHFB6xzZmPs6ozkdSeAnaP1YCT@lists.postgresql.org X-Gm-Message-State: AOJu0YywVqKMn4RX5TLFSiQCItSgrNEtaVJcf0ieQ8fxbPieL+kvRtBk oGo1xo2ljyxwYH4SAFHyZQxS8ciZ0GRpIOG3UPZfk66LZs6dfKLB2U4m5OVsJlO6uDKfOzRd/8J 06hUqAX6+HJOt2QOiX+/NotE55O7CVls= X-Gm-Gg: Acq92OFn3/d2Yw2lS+xCWcVsrLwMWB2gIhG5uOy0R53Ov6L3FOOK2lMoXOmMkxcKWRf Z0fuHsMj7Wkt7eIX7wkwPfPiIZ+fLTH0vbupll6+92sIRb/03I2mlD35he81iNF8/Fi0o49ggF6 tzdh+uuKtfHfBp7/YW+spJ6fXuqEDAgqDjqbgvAiQ5ybraoHfkXclGv+IoKPPXXfkrxEHNW6chx Df6l/KRPWdQWxBS3XBLXjt+VhJGSKRU4i+T5iZYT80Qh9q0pJ2VppaeeFLc+QvbLIn44tEwXpof dAWXqilFr/rZGfo7I+nxUyXKMZrNY0gGWoDrlNs= X-Received: by 2002:a05:690c:e36b:b0:7ba:eefe:9fa1 with SMTP id 00721157ae682-7d20a8a7c90mr24640517b3.6.1779364125781; Thu, 21 May 2026 04:48:45 -0700 (PDT) MIME-Version: 1.0 References: <19488-d7ccfca2bf6b74b0@postgresql.org> In-Reply-To: From: Ayush Tiwari Date: Thu, 21 May 2026 17:18:34 +0530 X-Gm-Features: AVHnY4IkzarQeUxaWZP4sgjjoiKeYmPRUWCzDuF52-OVnhZsFLBXT4hPHDUf4ns Message-ID: Subject: Re: BUG #19488: Standby connection fails after dropping on login event trigger enabled always To: Alexander Korotkov Cc: Fujii Masao , kyzevan23@mail.ru, pgsql-bugs@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000a4b2c70652527ecc" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a4b2c70652527ecc Content-Type: text/plain; charset="UTF-8" Hi, On Thu, 21 May 2026 at 17:01, Alexander Korotkov wrote: > > 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! Regards, Ayush --000000000000a4b2c70652527ecc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

On Thu, 21 May 2= 026 at 17:01, Alexander Korotkov <aekorotkov@gmail.com> wrote:

I suggest another approach.=C2=A0 Create a separate test database and apply=
event trigger on it.=C2=A0 wait_for_catchup() and others use 'postgres&= #39;
database and wouldn't touch our test database.
I also added check for successful clearance of the flag on both
primary and standby.=C2=A0 One issue spotted there: in-place heap update doesn't issue a WAL flush.=C2=A0 But I think that's minor, WAL coul= d be
flushed by any subsequent operation.

I agre= e the approach you are suggesting is better.

Patch looks good to me!=

Regards,
Ayush
--000000000000a4b2c70652527ecc--