mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
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.
This commit is contained in:
parent
e8b1d1befe
commit
405a468b02
@ -634,7 +634,7 @@ refresh_by_match_merge(Oid matviewOid, Oid tempOid)
|
||||
|
||||
/* Skip partial indexes. */
|
||||
indexRel = index_open(index->indexrelid, RowExclusiveLock);
|
||||
if (indexRel->rd_indpred != NIL)
|
||||
if (RelationGetIndexPredicate(indexRel) != NIL)
|
||||
{
|
||||
index_close(indexRel, NoLock);
|
||||
ReleaseSysCache(indexTuple);
|
||||
|
Loading…
x
Reference in New Issue
Block a user