Re: Flaky vacuum truncate test in reloptions.sql

From: Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
To: Arseny Sher <a(dot)sher(at)postgrespro(dot)ru>
Cc: Michael Paquier <michael(at)paquier(dot)xyz>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Flaky vacuum truncate test in reloptions.sql
Date: 2021-03-31 13:17:09
Message-ID: CAD21AoB+qb-sOY2QeTnGirjh-UvFJj8eANVwQ4CV-r+t1AhxDA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Mar 30, 2021 at 10:22 PM Arseny Sher <a(dot)sher(at)postgrespro(dot)ru> wrote:
>
> On 3/30/21 10:12 AM, Michael Paquier wrote:
>
> > Yep, this is the same problem as the one discussed for c2dc1a7, where
> > a concurrent checkpoint may cause a page to be skipped, breaking the
> > test.
>
> Indeed, Alexander Lakhin pointed me to that commit after I wrote the
> message.
>
> > Why not just using DISABLE_PAGE_SKIPPING instead here?
>
> I think this is not enough. DISABLE_PAGE_SKIPPING disables vm consulting
> (sets
> aggressive=true in the routine); however, if the page is locked and
> lazy_check_needs_freeze says there is nothing to freeze on it, we again
> don't
> look at its contents closely.

Right.

Is it better to add FREEZE to the first "VACUUM reloptions_test;" as well?

Regards,

--
Masahiko Sawada
EDB: https://www.enterprisedb.com/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2021-03-31 13:18:49 Re: [PATCH] add concurrent_abort callback for output plugin
Previous Message Ashutosh Bapat 2021-03-31 13:12:09 Re: UniqueKey on Partitioned table.