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 1waTIx-001pHK-29 for pgsql-general@arkaria.postgresql.org; Fri, 19 Jun 2026 07:06:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1waTIv-00FJrH-30 for pgsql-general@arkaria.postgresql.org; Fri, 19 Jun 2026 07:06:17 +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 1waTIv-00FJr9-1o for pgsql-general@lists.postgresql.org; Fri, 19 Jun 2026 07:06:17 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1waTIt-000000016T2-3xd4 for pgsql-general@postgresql.org; Fri, 19 Jun 2026 07:06:16 +0000 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-46019b190b6so1355268f8f.3 for ; Fri, 19 Jun 2026 00:06:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1781852774; x=1782457574; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=Y7u4RinmEdcHszsKjbRTKb/MomD5rhBN4QnCRaKMYus=; b=q6ozS2bE3xMJMc8cnr1f4jVV1yRQ11hHOij9hxS9c05V34852J9jjVgRpj9unCL5ap S3b0Jup44fZVtgh0kItxkE4RJeuNWz/jDGo8mBkGg69pEDCHIbpVZVOnuEinTNwZ06QL AaOTQWFTLQcpEuL3jAejNKtQNkrSNssdoEca0wN0o+ba0rAI5HUfGHtM6LYM+GsdeE3s M3TYkXiHgaWJO9NrnpRxUfHcvvlxy/vJ/Tbt3AwYZ7+0rR5UtA75cg6zDuUa8RYIgzw/ 7/Q9NTm7dRkBSi2EGojMurkAciPrkVjc+stnWmyTwVHAQbng7HS0hnJHqyGY2tK0C9+g 3RMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781852774; x=1782457574; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Y7u4RinmEdcHszsKjbRTKb/MomD5rhBN4QnCRaKMYus=; b=J9LX8/cGOY4lDl8EXDIFzW5Y/znD2zGDZHWo4YEsiKAvsvaKOIk1NUv2hwJOSgnMp6 GCF9MMrwLW0L9E26PuWas1eXE1N28PlDLkYouxqfp9uN6G3I596k7B9FbHewDVd6kuWd Z2ICiTOxBcyPpn71HqdpCvzWIRx1/fNXC1FEYcHr9Vkxud8pe1fQIXgm9GUvERHXqq7w 1wdJFdE59qrS3H+jQppNaear2bdm/E//9lvAHdk41UpRmWt0dLFSE/14psP0Mb2OP9s2 8XqIwBgGbuH/2QRlzbn26Z1mKAVNeoyWXDHVcUdX0dZ8oi0X3Eh51BlGFOiMn7MVVszO mwLQ== X-Gm-Message-State: AOJu0Yx7ndiFSPiOeOVLWfjel4QPdpipZPpIXwSzS3RQa/CdmJwOh/4m 4f6rZfPjtr0OOUvHO7bzBrBGloELWD/8PtoSbqSf3Rjz8RR36HNFgjIKsT+hU0q6Pek= X-Gm-Gg: AfdE7cn/3s+ghUmeQfQEDhcrhp3+iOmd4LXiY3XLqv7OYqDgJpwaM+JY+b0jcpaSi1n rNepUG1YU6y0u0BXXE0rdEu2xzrXJYTtOsFWBTX/3kpsxR9E0gGdKHkHxWO3SyE8oWTsvGjHrX2 k+ettU6EUotn1aWiQUyspZnrlu+1GLoXuoeKpbfqmgDyuGMca5Bv7pMAdwJuuj43OMWny49gCxP ajhYVPZ/YkrW3s4lLzQAJBF2NcbZknssItxCtyZZFLJNFLLiKldahXaGwVbtdGaxRng3KEl4Gdp fj5YztBXHbTGx3WB6M/ERYsHlM45zPC58ZhlyAn4MT34j0/gnXJAwmPdK7Xdh/Q1wT0cY11niLs Y3mW5sDfmwa7HszFQrvaSNvYTnclLciOOS6rG5suZT4Z52/Ux9aqP/nl6Cf+54F5PQdJswgx3gJ DTimMMl8XRs67JrB1nOTR9GYKT/syUaRTthcTKQXvWuA== X-Received: by 2002:a05:600c:5588:b0:490:58ef:cea7 with SMTP id 5b1f17b1804b1-4923f578dffmr29888345e9.22.1781852774075; Fri, 19 Jun 2026 00:06:14 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:70:1ccd:9391:b4d3:4c62:b0b1]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4923fcfee57sm40024345e9.7.2026.06.19.00.06.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jun 2026 00:06:13 -0700 (PDT) Message-ID: Subject: Re: Why is WAL-file based replica stuck for long time (hour?) in IPC:RecoveryConflictSnapshot ? From: Laurenz Albe To: depesz@depesz.com, Thom Brown Cc: pgsql-general mailing list Date: Fri, 19 Jun 2026 09:06:12 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (3.58.3-1.fc43) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2026-06-18 at 15:33 +0200, hubert depesz lubaczewski wrote: > 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? >=20 > No transactions were happening then. These are our "Disaster Recovery" > instances, and they are generally unused. >=20 > max_standby_streaming_delay is 10 minutes > hot_standby_feedback is on. >=20 > Please note that these are *NOT* doing streaming replication! Could it be bug #19490 [1]? That would be fixed in the next minor releases. Yours, Laurenz Albe [1]: https://postgr.es/m/flat/19490-9c59c6a583513b99%40postgresql.org