Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit421d4f9

Browse files
committed
Put back erroneously removed zeroing of sentinel elements
in indexkeys, classlist arrays.
1 parent142ce79 commit421d4f9

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)

[8]ページ先頭

©2009-2025 Movatter.jp