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 1waCsd-001bc8-37 for pgsql-general@arkaria.postgresql.org; Thu, 18 Jun 2026 13:34:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1waCsb-00BUw6-1k for pgsql-general@arkaria.postgresql.org; Thu, 18 Jun 2026 13:34:01 +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 1waCsb-00BUvy-0P for pgsql-general@lists.postgresql.org; Thu, 18 Jun 2026 13:34:01 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1waCsZ-00000000ydN-1Rqs for pgsql-general@postgresql.org; Thu, 18 Jun 2026 13:34:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description; bh=I1mmtRRaRoPfIwyxF3k9ZQmkswCL9ssW0o2bRbesnes=; b=X/ZkilHs983d13hEyCRrBercoZ FUKs1LvzP8u8/+mcrEhYLbwqPe/EaC9faaD/Eby1V2E1Hizp/hj3sqfjmv6dD2K2klQS0S+UrB55H MXxUjZkATV712VP3saM0n0+yhh0V52nb60GRpr3x//rvKbJLERMGzHA6yYGt//lrbrZs=; Received: from depesz by depesz.com with local (Exim 4.98.2) (envelope-from ) id 1waCsW-0000000Cykp-2TNg; Thu, 18 Jun 2026 15:33:56 +0200 Date: Thu, 18 Jun 2026 15:33:56 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Thom Brown Cc: pgsql-general mailing list Subject: Re: Why is WAL-file based replica stuck for long time (hour?) in IPC:RecoveryConflictSnapshot ? Message-ID: Reply-To: depesz@depesz.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Jun 18, 2026 at 02:07:36PM +0100, Thom Brown wrote: > Have you got anything in the logs that say "conflict with recovery"? > Also, I know you are just running count(*), but is there a transaction > being left open? > SELECT pid, state, xact_start, query > FROM pg_stat_activity > ORDER BY xact_start NULLS LAST; > Any 'idle in transaction' for too long? > What is max_standby_streaming_delay and hot_standby_feedback set to? No transactions were happening then. These are our "Disaster Recovery" instances, and they are generally unused. max_standby_streaming_delay is 10 minutes hot_standby_feedback is on. Please note that these are *NOT* doing streaming replication! Best regards, depesz