File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 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 /*
You can’t perform that action at this time.
0 commit comments