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

Commit0f6b004

Browse files
committed
cleanups of indexing.c
1 parent4b9e21b commit0f6b004

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

‎src/backend/catalog/indexing.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.27 1998/09/01 06:22:42 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.28 1998/09/01 06:51:35 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -121,10 +121,8 @@ CatalogIndexInsert(Relation *idescs,
121121

122122
for (i=0;i<nIndices;i++)
123123
{
124-
TupleDescindexDescriptor;
125124
InsertIndexResultindexRes;
126125

127-
indexDescriptor=RelationGetDescr(idescs[i]);
128126
pgIndexTup=SearchSysCacheTupleCopy(INDEXRELID,
129127
ObjectIdGetDatum(idescs[i]->rd_id),
130128
0,0,0);
@@ -134,7 +132,7 @@ CatalogIndexInsert(Relation *idescs,
134132
/*
135133
* Compute the number of attributes we are indexing upon.
136134
*/
137-
for (attnumP=(&pgIndexP->indkey[0]),natts=0;
135+
for (attnumP=pgIndexP->indkey,natts=0;
138136
*attnumP!=InvalidAttrNumber;
139137
attnumP++,natts++)
140138
;
@@ -151,7 +149,7 @@ CatalogIndexInsert(Relation *idescs,
151149
finfoP= (FuncIndexInfo*)NULL;
152150

153151
FormIndexDatum(natts,
154-
(AttrNumber*)&pgIndexP->indkey[0],
152+
(AttrNumber*)pgIndexP->indkey,
155153
heapTuple,
156154
heapDescriptor,
157155
&datum,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp