Re: BUG #17212: pg_amcheck fails on checking temporary relations

From: Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com>
To: Peter Geoghegan <pg(at)bowt(dot)ie>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Pavel Borisov <pashkin(dot)elfe(at)gmail(dot)com>, Alexander Lakhin <exclusion(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: BUG #17212: pg_amcheck fails on checking temporary relations
Date: 2021-10-11 16:53:45
Message-ID: 07159C9A-40DA-47BF-B2F4-203F5AC00890@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

> On Oct 6, 2021, at 4:12 PM, Peter Geoghegan <pg(at)bowt(dot)ie> wrote:
>
>>
>> Ok, excellent, that was probably the only thing that had me really hung up. I thought you were still asking for pg_amcheck to filter out the --parent-check option when in recovery, but if you're not asking for that, then I might have enough to go on now.
>
> Sorry about that. I realized my mistake (not specifically addressing
> pg_is_in_recovery()) after I hit "send", and should have corrected the
> record sooner.
>
>> I was using "downgrading" to mean downgrading from bt_index_parent_check() to bt_index_check() when pg_is_in_recovery() is true, but you've clarified that you're not requesting that downgrade, so I think we've now gotten past the last sticking point about that whole issue.
>
> Right. I never meant anything like making a would-be
> bt_index_parent_check() call into a bt_index_check() call, just
> because of the state of the system (e.g., it's in recovery). That
> seems awful, in fact.

Please find attached the latest version of the patch which includes the changes we discussed.

Attachment Content-Type Size
v2-0001-Fix-BUG-17212.patch application/octet-stream 19.3 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Geoghegan 2021-10-11 17:10:25 Re: BUG #17212: pg_amcheck fails on checking temporary relations
Previous Message PG Bug reporting form 2021-10-11 16:17:39 BUG #17221: Data sending resume

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2021-10-11 16:56:34 Re: storing an explicit nonce
Previous Message Peter Geoghegan 2021-10-11 16:37:51 Re: Corruption with IMMUTABLE functions in index expression.