Andrew Dunstan <and...@dunslane.net> 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