diff options
| author | Teodor Sigaev | 2016-04-08 18:52:13 +0000 |
|---|---|---|
| committer | Teodor Sigaev | 2016-04-08 18:52:13 +0000 |
| commit | 8b99edefcab1e82c43139a2c7dc06d31fb27b3e4 (patch) | |
| tree | 5428925d16447c4d204e0956e6d2ae1032847585 /src/backend/commands/matview.c | |
| parent | 35e2e357cb054dc9e5d890fe754c56f0722f015e (diff) | |
Revert CREATE INDEX ... INCLUDING ...
It's not ready yet, revert two commits
690c543550b0d2852060c18d270cdb534d339d9a - unstable test output
386e3d7609c49505e079c40c65919d99feb82505 - patch itself
Diffstat (limited to 'src/backend/commands/matview.c')
| -rw-r--r-- | src/backend/commands/matview.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/commands/matview.c b/src/backend/commands/matview.c index 59d5aa44426..f00aab39e7b 100644 --- a/src/backend/commands/matview.c +++ b/src/backend/commands/matview.c @@ -612,7 +612,7 @@ refresh_by_match_merge(Oid matviewOid, Oid tempOid, Oid relowner, RelationGetRelationName(tempRel)); diffname = make_temptable_name_n(tempname, 2); - relnatts = RelationGetNumberOfAttributes(matviewRel); + relnatts = matviewRel->rd_rel->relnatts; usedForQual = (bool *) palloc0(sizeof(bool) * relnatts); /* Open SPI context. */ @@ -698,11 +698,11 @@ refresh_by_match_merge(Oid matviewOid, Oid tempOid, Oid relowner, RelationGetIndexExpressions(indexRel) == NIL && RelationGetIndexPredicate(indexRel) == NIL) { - int indnkeyatts = indexStruct->indnkeyatts; + int numatts = indexStruct->indnatts; int i; /* Add quals for all columns from this index. */ - for (i = 0; i < indnkeyatts; i++) + for (i = 0; i < numatts; i++) { int attnum = indexStruct->indkey.values[i]; Oid type; |
