Skip to content

Commit 9cf80f2

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

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 be embarassing to do this sort of thing in polite
488-
* company.
487+
* index. sure would be embarrassing to do this sort of thing in
488+
* polite company.
489489
* ----------------
490490
*/
491491
tuple->t_data->t_oid = RelationGetRelid(indexRelation);

0 commit comments

Comments
 (0)