From b34648c136e7d1ac4e583d783cffe335a2697494 Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Wed, 9 Apr 2025 15:50:48 +0300 Subject: [PATCH] Remove XLogWaitForReplayOf at replica to avoid deadlock --- pgxn/neon/communicator.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/pgxn/neon/communicator.c b/pgxn/neon/communicator.c index 7c84be7d15..d7775db500 100644 --- a/pgxn/neon/communicator.c +++ b/pgxn/neon/communicator.c @@ -2085,9 +2085,6 @@ communicator_read_at_lsnv(NRelFileInfo rinfo, ForkNumber forkNum, BlockNumber ba start_ts = GetCurrentTimestamp(); - if (RecoveryInProgress() && MyBackendType != B_STARTUP) - XLogWaitForReplayOf(reqlsns->request_lsn); - /* * Try to find prefetched page in the list of received pages. */