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

Commit7633cad

Browse files
author
Hiroshi Inoue
committed
SearchSysCacheTupleCopy() instead of SearchSysCache()
1 parentc7eb18f commit7633cad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/backend/commands/creatinh.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.65 2000/11/08 22:09:57 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.66 2000/11/1309:16:55 inoue Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -756,7 +756,7 @@ setRelhassubclassInRelation(Oid relationId, bool relhassubclass)
756756
* lock to it.
757757
*/
758758
relationRelation=heap_openr(RelationRelationName,RowExclusiveLock);
759-
tuple=SearchSysCacheTuple(RELOID,
759+
tuple=SearchSysCacheTupleCopy(RELOID,
760760
ObjectIdGetDatum(relationId),
761761
0,0,0)
762762
;
@@ -771,6 +771,7 @@ setRelhassubclassInRelation(Oid relationId, bool relhassubclass)
771771
);
772772
CatalogCloseIndices(Num_pg_class_indices,idescs);
773773

774+
heap_freetuple(tuple);
774775
heap_close(relationRelation,RowExclusiveLock);
775776
}
776777

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp