From: Hiroshi Inoue Date: Mon, 13 Nov 2000 09:16:55 +0000 (+0000) Subject: SearchSysCacheTupleCopy() instead of SearchSysCache() X-Git-Tag: REL7_1_BETA~188 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7633cada54aad935b16410c6ebc3a1ee8e606033;p=postgresql SearchSysCacheTupleCopy() instead of SearchSysCache() --- diff --git a/src/backend/commands/creatinh.c b/src/backend/commands/creatinh.c index 75fd047392..a1d45d170a 100644 --- a/src/backend/commands/creatinh.c +++ b/src/backend/commands/creatinh.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.65 2000/11/08 22:09:57 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.66 2000/11/13 09:16:55 inoue Exp $ * *------------------------------------------------------------------------- */ @@ -756,7 +756,7 @@ setRelhassubclassInRelation(Oid relationId, bool relhassubclass) * lock to it. */ relationRelation = heap_openr(RelationRelationName, RowExclusiveLock); - tuple = SearchSysCacheTuple(RELOID, + tuple = SearchSysCacheTupleCopy(RELOID, ObjectIdGetDatum(relationId), 0, 0, 0) ; @@ -771,6 +771,7 @@ setRelhassubclassInRelation(Oid relationId, bool relhassubclass) ); CatalogCloseIndices(Num_pg_class_indices, idescs); + heap_freetuple(tuple); heap_close(relationRelation, RowExclusiveLock); }