|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.42 2000/01/11 03:33:13 momjian Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/optimizer/util/plancat.c,v 1.43 2000/01/12 00:53:21 tgl Exp $ |
12 | 12 | *
|
13 | 13 | *-------------------------------------------------------------------------
|
14 | 14 | */
|
@@ -120,8 +120,10 @@ find_secondary_indexes(Query *root, Index relid)
|
120 | 120 |
|
121 | 121 | for (i=0;i<INDEX_MAX_KEYS;i++)
|
122 | 122 | info->indexkeys[i]=index->indkey[i];
|
| 123 | +info->indexkeys[INDEX_MAX_KEYS]=0; |
123 | 124 | for (i=0;i<INDEX_MAX_KEYS;i++)
|
124 | 125 | info->classlist[i]=index->indclass[i];
|
| 126 | +info->classlist[INDEX_MAX_KEYS]= (Oid)0; |
125 | 127 |
|
126 | 128 | /* Extract info from the relation descriptor for the index */
|
127 | 129 | indexRelation=index_open(index->indexrelid);
|
|