From 255537dda1145a38b712473ca8d5281dca113cfd Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 5 Jun 2025 20:08:32 +0300 Subject: [PATCH] avoid hitting assertion failure in MarkPostmasterChildWalSender() --- pgxn/neon/communicator_new.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pgxn/neon/communicator_new.c b/pgxn/neon/communicator_new.c index b06a740d2a..1b31909bb1 100644 --- a/pgxn/neon/communicator_new.c +++ b/pgxn/neon/communicator_new.c @@ -232,6 +232,7 @@ communicator_new_bgworker_main(Datum main_arg) * sequence: WAL senders are shut down last, after the final checkpoint * has been written. That's what we want for the communicator process too */ + am_walsender = true; MarkPostmasterChildWalSender(); /* lfc_size_limit is in MBs */