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

Commit2aa080f

Browse files
committed
indexing.c cleanups.
1 parent24a05f5 commit2aa080f

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

‎src/backend/catalog/index.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.57 1998/08/28 04:57:19 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.58 1998/08/31 17:49:16 momjian Exp $
1111
*
1212
*
1313
* INTERFACE ROUTINES
@@ -1281,8 +1281,7 @@ FormIndexDatum(int numberOfAttributes,
12811281
{
12821282
offset=AttrNumberGetAttrOffset(i);
12831283

1284-
datum[offset]=
1285-
PointerGetDatum(GetIndexValue(heapTuple,
1284+
datum[offset]=PointerGetDatum(GetIndexValue(heapTuple,
12861285
heapDescriptor,
12871286
offset,
12881287
attributeNumber,

‎src/backend/catalog/indexing.c

Lines changed: 3 additions & 4 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.23 1998/08/30 23:25:55 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/catalog/indexing.c,v 1.24 1998/08/31 17:49:17 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -132,8 +132,7 @@ CatalogIndexInsert(Relation *idescs,
132132
pgIndexP= (IndexTupleForm)GETSTRUCT(pgIndexTup);
133133

134134
/*
135-
* Compute the number of attributes we are indexing upon. very
136-
* important - can't assume one if this is a functional index.
135+
* Compute the number of attributes we are indexing upon.
137136
*/
138137
for (attnumP= (&pgIndexP->indkey[0]),natts=0;
139138
*attnumP!=InvalidAttrNumber;
@@ -301,7 +300,7 @@ AttributeNumIndexScan(Relation heapRelation,
301300
(bits16)0x0,
302301
(AttrNumber)1,
303302
(RegProcedure)F_OIDEQ,
304-
Int32GetDatum(relid));
303+
ObjectIdGetDatum(relid));
305304

306305
ScanKeyEntryInitialize(&skey[1],
307306
(bits16)0x0,

‎src/backend/catalog/pg_proc.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.20 1998/08/24 01:37:47 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.21 1998/08/31 17:49:18 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -129,7 +129,6 @@ ProcedureCreate(char *procedureName,
129129

130130
if (!strcmp(languageName,"sql"))
131131
{
132-
133132
/*
134133
* If this call is defining a set, check if the set is already
135134
* defined by looking to see whether this call's function text
@@ -142,6 +141,7 @@ ProcedureCreate(char *procedureName,
142141
tup=SearchSysCacheTuple(PROSRC,
143142
PointerGetDatum(prosrctext),
144143
0,0,0);
144+
pfree(prosrctext);
145145
if (HeapTupleIsValid(tup))
146146
returntup->t_oid;
147147
}
@@ -152,8 +152,7 @@ ProcedureCreate(char *procedureName,
152152
0,0,0);
153153

154154
if (!HeapTupleIsValid(tup))
155-
elog(ERROR,"ProcedureCreate: no such language %s",
156-
languageName);
155+
elog(ERROR,"ProcedureCreate: no such language %s",languageName);
157156

158157
languageObjectId=tup->t_oid;
159158

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp