Skip to content

Commit 732a1fd

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 is changed on ALTER TYPE ... OWNER TO.
1 parent 109d0ae commit 732a1fd

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy