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.94.2) (envelope-from ) id 1sdYjK-00Gf9o-3r for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Aug 2024 17:21:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sdYjI-00GuDY-QB for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Aug 2024 17:21:12 +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.94.2) (envelope-from ) id 1sdYjI-00GuDO-GV for pgsql-hackers@lists.postgresql.org; Mon, 12 Aug 2024 17:21:12 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sdYjG-004OAm-5V for pgsql-hackers@postgresql.org; Mon, 12 Aug 2024 17:21:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 47CHL4hE683544; Mon, 12 Aug 2024 13:21:04 -0400 From: Tom Lane To: Andrew Dunstan cc: Alexander Lakhin , Thomas Munro , Michael Paquier , pgsql-hackers , Andres Freund , Bharath Rupireddy Subject: Re: Recent 027_streaming_regress.pl hangs In-reply-to: <4230d49c-898d-43e0-8ca9-a64b5b702b1d@dunslane.net> References: <2378342.1710449799@sss.pgh.pa.us> <20240321004145.obrbakt4ugzcsphy@awork3.anarazel.de> <20240326035607.grqoyrxjvpyhnkrf@awork3.anarazel.de> <2750204.1711425638@sss.pgh.pa.us> <20240326042832.4urkzpnwhawyngah@awork3.anarazel.de> <2756083.1711428894@sss.pgh.pa.us> <20240326075912.sia3wlvnaqnbf47u@awork3.anarazel.de> <7e914807-eeaa-5c44-3543-bb2888030122@gmail.com> <20240404170055.qynecay7szu3dgvu@awork3.anarazel.de> <137979d0-943e-42c8-ab53-1244b30a6623@dunslane.net> <1505004.1721934379@sss.pgh.pa.us> <1563098.1721942053@sss.pgh.pa.us> <3d35a43c-2439-4840-9066-0a661efcf1f7@dunslane.net> <3390479.1722441934@sss.pgh.pa.us> <4205a24d-a1ce-4658-99d7-b00d8472d4c0@dunslane.net> <352068.1723422725@sss.pgh.pa! .us> <4230d49c-898d-43e0-8ca9-a64b5b702b1d@dunslane.net> Comments: In-reply-to Andrew Dunstan message dated "Mon, 12 Aug 2024 09:43:43 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <683542.1723483264.1@sss.pgh.pa.us> Date: Mon, 12 Aug 2024 13:21:04 -0400 Message-ID: <683543.1723483264@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrew Dunstan writes: > On 2024-08-11 Su 8:32 PM, Tom Lane wrote: >> I think we need more data. We know that the >> wait_for_catchup query is never getting to true: >> >> SELECT '$target_lsn' <= ${mode}_lsn AND state = 'streaming' >> >> but we don't know if the LSN condition or the state condition is >> what is failing. And if it is the LSN condition, it'd be good >> to see the actual last LSN, so we can look for patterns like >> whether there is a page boundary crossing involved. So I suggest >> adding something like the attached. > Seems reasonable. Pushed. In the event I made it just "SELECT * FROM" the relevant view: there will be few if any rows that aren't potentially interesting, and filtering the columns doesn't seem like a forward-looking idea either. regards, tom lane