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

Commit9cf80f2

Browse files
committed
Clean out another pocket of functions called via nonspecific function
pointers, namely the catcache tuple fetch routines. Also get rid ofthe unused and possibly confusing 'size' field in struct cachedesc.Since it doesn't allow for variable-length fields, anyone whoactually trusted it would likely be making a mistake...
1 parent1652d43 commit9cf80f2

File tree

9 files changed

+340
-388
lines changed

9 files changed

+340
-388
lines changed

‎src/backend/catalog/index.c

Lines changed: 4 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/index.c,v 1.115 2000/06/15 03:32:02 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.116 2000/06/17 04:56:36 tgl Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -479,13 +479,13 @@ UpdateRelationRelation(Relation indexRelation, char *temp_relname)
479479

480480
/* XXX Natts_pg_class_fixed is a hack - see pg_class.h */
481481
tuple=heap_addheader(Natts_pg_class_fixed,
482-
sizeof(*indexRelation->rd_rel),
482+
CLASS_TUPLE_SIZE,
483483
(char*)indexRelation->rd_rel);
484484

485485
/* ----------------
486486
*the new tuple must have the same oid as the relcache entry for the
487-
*index.sure would beembarassing to do this sort of thing in polite
488-
*company.
487+
*index.sure would beembarrassing to do this sort of thing in
488+
*politecompany.
489489
* ----------------
490490
*/
491491
tuple->t_data->t_oid=RelationGetRelid(indexRelation);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp