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 1vunKx-006qp4-2t for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Feb 2026 08:00:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vunKw-0000lq-2i for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Feb 2026 08:00:06 +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 1vunKw-0000li-1W for pgsql-hackers@lists.postgresql.org; Tue, 24 Feb 2026 08:00:06 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vunKt-00000000vZJ-2l2B for pgsql-hackers@postgresql.org; Tue, 24 Feb 2026 08:00:05 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-483487335c2so47299495e9.2 for ; Tue, 24 Feb 2026 00:00:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1771920002; x=1772524802; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ZQ6n8Pc0e7XxAgQcWmvOkCDKkZ9deqnVov2P9Yqof0w=; b=Utjnxc9VNJyOQ2Wz8VsiAr0fe0ium1lR6pXsxQhJ5nC1X4DMpFTChjkF4S3D+gVRrB 0n6PIC/m/nG3lHULCAB5sC+nMlGqjVRDIF/t/xwMa8wVk+LG3lFRpbWyxedyqqzFhPnz g0IpAKf8NmB2w+uABgPNY6umoQYdIaI3AnBL2+zi9CQ1Lm4+oEtehtJuvUjAq24fnUCu zMXXFHaSBjpb84x6tHU9ECU7xxw9jpO4csvJAXjvr1vX0ZKPm8E/1QtxGPJiqMEZLRJk bPH6BXpF04qDfpGS+SLhMJBG72oilBDFiP4v9o770QBVcXjNPh5SaXwZp+++WRq+4QHK OERg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771920002; x=1772524802; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZQ6n8Pc0e7XxAgQcWmvOkCDKkZ9deqnVov2P9Yqof0w=; b=ocJWYThzD3xkBWRbMfC8cRVnPwO1g3P6j+TKYXQ7lQsxTr7kcEV0QWeHlI7quWdGB3 ZPrFr7rhxggEuuoaudU8XrYIErr/E/i2ZzNIL/Fpy5DlUQbxJzVvgeQ/N0YJf6zHUIUB 5Mp0zB/aRWggfTy0dC4gMRKBeVw13eXY49Ujdxzj9W2onWnEPjFoZ8WvFi3K2sDV+rRl RZm2vwsKV3yoIjL3lj1VOugcummlAn2Aalj4xn3+KQS7wuHL9A9pBd1SAaLRQrTzKwYS 58cI2CEtvQNzgr2ITvl2ZQm4ZJ3TckhmLNDlUUtv3OD+e58QQpTmZMCEi1jWs/1ntzq7 x0Fw== X-Gm-Message-State: AOJu0Yxbo8yUmFlr+ZrJ6EMuiawypyF3F52KrHYEzzL1qsC+BDTsrpB9 WTEFPzFIszTbgG4SznMNbv8B/8nUqDuJz445tHBWXnQYZj3JiZsoH/+I X-Gm-Gg: AZuq6aKl7EEOyy+jvmuuojmOamG0mFu8kbFoFIMlKpqgFpSzj3rcz7Bliy2JcZ7XZQP SkpPNMx08tOAj1Gj3i78Kp9ObTSp9eoiJ5Qx/FCXomFZKQiOHKYzJz4xl0WXPJA1DbYIsGqW6N4 pBj8xcmT325kvXpu5gAZqegEfVPfKer9HhMWxlpCyXzeEialc073wO0PGJX0HY7lzdL1NxhHCLY GrChQolbg51IhTqc5LqvRWtLRag2aqok40O1KwIXu6nnEPK8Uav1CHTHJo99V/7mEghFyFXU5h0 4FIibpNOEpHTp1pNLO71uNu0yuXlAJKvE35A1ggA6PRZ69U2pGsofvl8TyKeUX7uach/lRHiICz bxiQqu2GzSlz7ZlPwlWjPT9A8aRYayxTW4OwGs3ishWOFSBZu+ZzftSuEup9pXBrz0kEzsygKsX kMuvPSXr+HFHXxgOKVsmDQU0U6 X-Received: by 2002:a05:600c:314a:b0:47e:e2eb:bc22 with SMTP id 5b1f17b1804b1-483a95b3e62mr201097325e9.5.1771920001619; Tue, 24 Feb 2026 00:00:01 -0800 (PST) Received: from [192.168.0.50] ([89.149.93.164]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43970d54c5csm24879277f8f.38.2026.02.24.00.00.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Feb 2026 00:00:00 -0800 (PST) Message-ID: Date: Tue, 24 Feb 2026 10:00:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Refactor recovery conflict signaling a little To: Heikki Linnakangas Cc: "pgsql-hackers@postgresql.org" , Chao Li References: <4cc13ba1-4248-4884-b6ba-4805349e7f39@iki.fi> <81b2c9a1-6d75-4ba9-894c-fd66c9036d99@iki.fi> <70774903-9f03-4816-b008-e2002a652bb9@iki.fi> Content-Language: en-US From: Alexander Lakhin In-Reply-To: <70774903-9f03-4816-b008-e2002a652bb9@iki.fi> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello Heikki, 10.02.2026 16:32, Heikki Linnakangas wrote: > On 03/02/2026 15:31, Heikki Linnakangas wrote: >> Attached are new versions of the remaining patches, with the above and the typo and whitespace fixes that you pointed >> out. > > I hear no objectons, so committed. Thanks for the review! Could you please look at a new failure of 035_standby_logical_decoding.pl produced at buildfarm [1]?: [05:34:51.345](233.134s) # poll_query_until timed out executing this query: # SELECT '0/0403F950' <= replay_lsn AND state = 'streaming' #          FROM pg_catalog.pg_stat_replication #          WHERE application_name IN ('standby', 'walreceiver') # expecting this output: # t # last actual query output: # f # with stderr: 035_standby_logical_decoding_standby.log contains: 2026-02-24 05:30:58.300 CET [1512377][client backend][:0] LOG: disconnection: session time: 0:00:00.035 user=bf database=testdb host=[local] 2026-02-24 05:30:58.425 CET [1507982][startup][32/0:0] LOG: invalidating obsolete replication slot "row_removal_inactiveslot" 2026-02-24 05:30:58.425 CET [1507982][startup][32/0:0] DETAIL:  The slot conflicted with xid horizon 748. 2026-02-24 05:30:58.425 CET [1507982][startup][32/0:0] CONTEXT:  WAL redo at 0/040214F0 for Heap2/PRUNE_ON_ACCESS: snapshotConflictHorizon: 748, isCatalogRel: T, nplans: 0, nredirected: 0, ndead: 3, nunused: 1, dead: [33, 34, 35], unused: [36]; blkref #0: rel 1663/16384/16418, blk 10 2026-02-24 05:30:58.425 CET [1507982][startup][32/0:0] LOG: terminating process 1512360 to release replication slot "row_removal_activeslot" 2026-02-24 05:30:58.425 CET [1507982][startup][32/0:0] DETAIL:  The slot conflicted with xid horizon 748. 2026-02-24 05:30:58.425 CET [1507982][startup][32/0:0] CONTEXT:  WAL redo at 0/040214F0 for Heap2/PRUNE_ON_ACCESS: snapshotConflictHorizon: 748, isCatalogRel: T, nplans: 0, nredirected: 0, ndead: 3, nunused: 1, dead: [33, 34, 35], unused: [36]; blkref #0: rel 1663/16384/16418, blk 10 2026-02-24 05:34:51.400 CET [1508227][walreceiver][:0] FATAL:  could not receive data from WAL stream: server closed the connection unexpectedly         This probably means the server terminated abnormally         before or while processing the request. The "terminating process ..." message doesn't appear when the test passes successfully. I've managed to reproduce this with multiple (20) test instances running in a loop (it failed within 10 iterations for me); `git bisect` for this anomaly pointed at 17f51ea81. [1] https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=serinus&dt=2026-02-24%2004%3A28%3A36 Best regards, Alexander