1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-07 00:36:50 +03:00

More cleanups. Still doesn't work.

This commit is contained in:
Bruce Momjian
2000-01-11 03:33:14 +00:00
parent aadd14b8f2
commit bd52f4bffd
5 changed files with 13 additions and 16 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.17 2000/01/10 17:14:32 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/indexcmds.c,v 1.18 2000/01/11 03:33:11 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -258,10 +258,10 @@ ExtendIndex(char *indexRelationName, Expr *predicate, List *rangetable)
relationId = index->indrelid;
indproc = index->indproc;
for (i = 0; i < INDEX_MAX_KEYS; i++)
for (i = INDEX_MAX_KEYS-1; i >= 0; i--)
if (index->indkey[i] == InvalidAttrNumber)
break;
numberOfAttributes = i;
numberOfAttributes = i+1;
if (VARSIZE(&index->indpred) != 0)
{