Re: BF animal dikkop reported a failure in 035_standby_logical_decoding

From: "Drouvot, Bertrand" <bertranddrouvot(dot)pg(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Yu Shi (Fujitsu)" <shiy(dot)fnst(at)fujitsu(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, tomas(dot)vondra(at)enterprisedb(dot)com
Subject: Re: BF animal dikkop reported a failure in 035_standby_logical_decoding
Date: 2023-05-31 05:52:05
Message-ID: c5567ea9-4cc0-46af-b90b-96cfb2f9a4b4@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 5/30/23 5:24 PM, Andres Freund wrote:
> Hi,
>
> On 2023-05-29 14:31:24 +0200, Drouvot, Bertrand wrote:
>> On 5/29/23 1:03 PM, Tom Lane wrote:
>>> but I wouldn't be surprised if something in the logical replication
>>> mechanism itself could be running a transaction at the wrong instant.
>>>
>>> Some of the other recovery tests set
>>> autovacuum = off
>>> to try to control such problems, but I'm not sure how much of
>>> a solution that really is.
>>
>> One option I can think of is to:
>>
>> 1) set autovacuum = off (as it looks like the usual suspect).
>> 2) trigger the vacuum in verbose mode (as suggested by Shi-san) and
>> depending of its output run the "invalidation" test or: re-launch the vacuum, re-check the output
>> and so on.. (n times max). If n is reached, then skip this test.
>
> I think the best fix would be to wait for a new snapshot that has a newer
> horizon, before doing the vacuum full.
>

Thanks for the proposal! I think that's a great idea, I'll look at it
and update the patch I've submitted in [1] accordingly.

[1]: https://www.postgresql.org/message-id/bf67e076-b163-9ba3-4ade-b9fc51a3a8f6%40gmail.com

Regards,

--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2023-05-31 06:03:01 Re: PG 16 draft release notes ready
Previous Message Shinoda, Noriyoshi (PN Japan FSIP) 2023-05-31 03:56:51 [16Beta1][doc] pgstat: Track time of the last scan of a relation