From: Drouvot, Bertrand <bertranddrouvot.pg@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Add isCatalogRel in rmgrdesc
Date: Tue, 12 Dec 2023 10:41:22 +0100
Message-ID: <5429a088-c7bd-4c60-b300-01b069bc0540@gmail.com> (raw)
In-Reply-To: <ZXgklSDHCr6l5coG@paquier.xyz>
References: <957dc8f9-2a02-4640-9c01-9dcbf97c4187@gmail.com>
<ZXgklSDHCr6l5coG@paquier.xyz>
Hi,
On 12/12/23 10:15 AM, Michael Paquier wrote:
> On Tue, Dec 12, 2023 at 09:23:46AM +0100, Drouvot, Bertrand wrote:
>> Please find attached a patch to add this field in the related rmgrdesc (i.e
>> all the ones that already provide the snapshotConflictHorizon except the one
>> related to xl_heap_visible: indeed a new bit was added in its flag field in 6af1793954
>> instead of adding the isCatalogRel bool).
>>
>> I think it's worth it, as this new field could help diagnose conflicts issues (if any).
>
> Agreed that this is helpful.
Thanks for looking at it!
> One would likely guess if you are
> dealing with a catalog relation depending on its relfilenode, but that
> does not take into account user_catalog_table that can be set as a
> reloption, impacting the value of isCatalogRel stored in the records.
Exactly and not mentioning the other checks in RelationIsAccessibleInLogicalDecoding()
like the wal_level >= logical one.
Regards,
--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: bertranddrouvot.pg@gmail.com, michael@paquier.xyz
Subject: Re: Add isCatalogRel in rmgrdesc
In-Reply-To: <5429a088-c7bd-4c60-b300-01b069bc0540@gmail.com>
References: <957dc8f9-2a02-4640-9c01-9dcbf97c4187@gmail.com> <ZXgklSDHCr6l5coG@paquier.xyz> <5429a088-c7bd-4c60-b300-01b069bc0540@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox