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

Commit732a1fd

Browse files
committed
Don't add a shared dependency on the owner of a composite type in pg_class.
We track the owner in pg_type instead, as that is the place where the owner ischanged on ALTER TYPE ... OWNER TO.
1 parent109d0ae commit732a1fd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎src/backend/catalog/heap.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/catalog/heap.c,v 1.295 2006/03/05 15:58:22 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/catalog/heap.c,v 1.296 2006/04/24 01:40:48 alvherre Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -772,7 +772,13 @@ heap_create_with_catalog(const char *relname,
772772
referenced.objectSubId=0;
773773
recordDependencyOn(&myself,&referenced,DEPENDENCY_NORMAL);
774774

775-
recordDependencyOnOwner(RelationRelationId,relid,ownerid);
775+
/*
776+
* For composite types, the dependency on owner is tracked for the
777+
* pg_type entry, so don't record it here. All other relkinds need
778+
* their ownership tracked.
779+
*/
780+
if (relkind!=RELKIND_COMPOSITE_TYPE)
781+
recordDependencyOnOwner(RelationRelationId,relid,ownerid);
776782
}
777783

778784
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp