Re: Regression test postgres_fdw might fail due to autovacuum

From: Alexander Lakhin <exclusion(at)gmail(dot)com>
To: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Melanie Plageman <melanieplageman(at)gmail(dot)com>
Subject: Re: Regression test postgres_fdw might fail due to autovacuum
Date: 2025-03-23 18:00:01
Message-ID: 2444cced-7da6-42f4-bcd6-de07c6fe6054@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello Masao-san and Melanie,

Thank you for your attention to this!

23.03.2025 19:26, Fujii Masao wrote:
>
>> With autovacuum = off, all of these fluctuations go away.
>
> So you are suggesting disabling autovacuum during the postgres_fdw regression test?

No, I'd prefer to have the test stable with working autovacuum. I just
wanted to point out that this failure is definitely caused by autovacuum
despite the lack of corresponding messages in the postmaster log.

>
> Just my idea to stabilize the test with "RETURNING *" is to use WITH, like this:
>
>     WITH tmp AS (UPDATE ... RETURNING *) SELECT * FROM tmp ORDER BY ...
>
> Thought?

Yeah, maybe such a trick will do.

23.03.2025 19:30, Melanie Plageman wrote:
> On Sun, Mar 23, 2025 at 10:00 AM Alexander Lakhin <exclusion(at)gmail(dot)com> wrote:
>> With autovacuum = off, all of these fluctuations go away.
> If autovacuum is somehow corrupting the table, then isn't there a bug
> that needs to be fixed? Also, are you only able to reproduce this on
> master?

Yes, I reproduced this on master, but I don't think the table is
corrupted in this case, it just contains tuples in other order.

Best regards,
Alexander Lakhin
Neon (https://neon.tech)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2025-03-23 18:02:31 Re: Regression test postgres_fdw might fail due to autovacuum
Previous Message Melanie Plageman 2025-03-23 17:37:20 Re: Using read_stream in index vacuum