1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

Allow 8-key indexes.

This commit is contained in:
Bruce Momjian
1998-09-23 04:22:14 +00:00
parent 747e19aa6c
commit b932b1b1c4
9 changed files with 21 additions and 21 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.38 1998/09/01 04:28:22 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/execUtils.c,v 1.39 1998/09/23 04:22:06 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -629,7 +629,8 @@ ExecGetIndexKeyInfo(Form_pg_index indexTuple,
* ----------------
*/
numKeys = 0;
for (i = 0; i < 8 && indexTuple->indkey[i] != 0; i++)
for (i = 0; i < INDEX_MAX_KEYS &&
indexTuple->indkey[i] != InvalidAttrNumber; i++)
numKeys++;
/* ----------------
@ -663,8 +664,7 @@ ExecGetIndexKeyInfo(Form_pg_index indexTuple,
*/
CXT1_printf("ExecGetIndexKeyInfo: context is %d\n", CurrentMemoryContext);
attKeys = (AttrNumber *)
palloc(numKeys * sizeof(AttrNumber));
attKeys = (AttrNumber *)palloc(numKeys * sizeof(AttrNumber));
for (i = 0; i < numKeys; i++)
attKeys[i] = indexTuple->indkey[i];