diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-01-11 03:33:14 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-01-11 03:33:14 +0000 |
commit | bd52f4bffdbdd7d87bab308ff2abd61fb9f2d490 (patch) | |
tree | 93e9c5627b77004e23a5e8e5f8857c9e7049666d /src/backend/commands | |
parent | aadd14b8f29ea2e29ccbb8fbda8eccdb8cff8fc2 (diff) | |
download | postgresql-bd52f4bffdbdd7d87bab308ff2abd61fb9f2d490.tar.gz postgresql-bd52f4bffdbdd7d87bab308ff2abd61fb9f2d490.zip |
More cleanups. Still doesn't work.
Diffstat (limited to 'src/backend/commands')
-rw-r--r-- | src/backend/commands/indexcmds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index 0682cefecb9..7231cec6cc1 100644 --- a/src/backend/commands/indexcmds.c +++ b/src/backend/commands/indexcmds.c @@ -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) { |