Skip to content

Commit 421d4f9

Browse files
committed
Put back erroneously removed zeroing of sentinel elements
in indexkeys, classlist arrays.
1 parent 142ce79 commit 421d4f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/backend/optimizer/util/plancat.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* 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 $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -120,8 +120,10 @@ find_secondary_indexes(Query *root, Index relid)
120120

121121
for (i = 0; i < INDEX_MAX_KEYS; i++)
122122
info->indexkeys[i] = index->indkey[i];
123+
info->indexkeys[INDEX_MAX_KEYS] = 0;
123124
for (i = 0; i < INDEX_MAX_KEYS; i++)
124125
info->classlist[i] = index->indclass[i];
126+
info->classlist[INDEX_MAX_KEYS] = (Oid) 0;
125127

126128
/* Extract info from the relation descriptor for the index */
127129
indexRelation = index_open(index->indexrelid);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy