Skip to content

Commit c72191b

Browse files
author
hackorum
committed
Apply build-desc-check-rules.patch
1 parent b597835 commit c72191b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/backend/utils/cache/relcache.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,11 @@ RelationBuildDesc(Oid targetRelId, bool insertIt)
12481248
* extracting the relation's reloptions.
12491249
*/
12501250
if (relation->rd_rel->relhasrules)
1251+
{
12511252
RelationBuildRuleLock(relation);
1253+
if (relation->rd_rules == NULL)
1254+
relation->rd_rel->relhasrules = false;
1255+
}
12521256
else
12531257
{
12541258
relation->rd_rules = NULL;

0 commit comments

Comments
 (0)