mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
Revert CREATE INDEX ... INCLUDING ...
It's not ready yet, revert two commits690c543550
- unstable test output386e3d7609
- patch itself
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user