aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-07-18 01:01:53 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2013-07-18 01:02:18 -0400
commit405a468b02dd80a069b95c4eb9838cb6a562eddd (patch)
tree167c4ea98a85e2b0b7f498b017e106f91c15a539
parente8b1d1befeab17453eb2977e83a45649e6ed8790 (diff)
downloadpostgresql-405a468b02dd80a069b95c4eb9838cb6a562eddd.tar.gz
postgresql-405a468b02dd80a069b95c4eb9838cb6a562eddd.zip
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.
-rw-r--r--src/backend/commands/matview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/matview.c b/src/backend/commands/matview.c
index edd34ff1716..46149eed4f7 100644
--- a/src/backend/commands/matview.c
+++ b/src/backend/commands/matview.c
@@ -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);