Content-Length: 260009 | pFad | http://github.com/postgrespro/postgres_cluster/commit/405a468b02dd80a069b95c4eb9838cb6a562eddd

80 Fix direct access to Relation->rd_indpred. · postgrespro/postgres_cluster@405a468 · GitHub
Skip to content

Commit 405a468

Browse files
committed
Fix direct access to Relation->rd_indpred.
Should use RelationGetIndexPredicate(), since rd_indpred is just a cache that is not computed until/unless demanded. Per buildfarm failure on CLOBBER_CACHE_ALWAYS animals; diagnosis and fix by Hitoshi Harada.
1 parent e8b1d1b commit 405a468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/commands/matview.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ refresh_by_match_merge(Oid matviewOid, Oid tempOid)
634634

635635
/* Skip partial indexes. */
636636
indexRel = index_open(index->indexrelid, RowExclusiveLock);
637-
if (indexRel->rd_indpred != NIL)
637+
if (RelationGetIndexPredicate(indexRel) != NIL)
638638
{
639639
index_close(indexRel, NoLock);
640640
ReleaseSysCache(indexTuple);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/405a468b02dd80a069b95c4eb9838cb6a562eddd

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy