checking rd_rules in RelationBuildDesc - Mailing list pgsql-hackers

From Ted Yu
Subject checking rd_rules in RelationBuildDesc
Date
Msg-id CALte62wkWEaUkC-Nbh8wkrQ3=VgDVpV3fTWbFR=c22VJmvWysg@mail.gmail.com
Whole thread Raw
Responses Re: checking rd_rules in RelationBuildDesc
List pgsql-hackers
Hi,
(In light of commit 7b2ccc5e03bf16d1e1bbabca25298108c839ec52)

In RelationBuildDesc(), we have:

        if (relation->rd_rel->relhasrules)
                RelationBuildRuleLock(relation);

I wonder if we should check relation->rd_rules after the call to RelationBuildRuleLock().

Your comment is appreciated.
Attachment

pgsql-hackers by date:

Previous
From: Dimos Stamatakis
Date:
Subject: Re: Fix for visibility check on 14.5 fails on tpcc with high concurrency
Next
From: Sergey Shinderuk
Date:
Subject: Re: Bug in row_number() optimization