diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-05-14 20:24:41 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-05-14 20:24:41 +0000 |
commit | 0a9cbcbfd2fdb8f7c8b602ab5fb1091be9141d9e (patch) | |
tree | dcb7be156e09bfbaf976681aa03d1f959820d0dd /src/backend/commands/tablecmds.c | |
parent | 2b321533f38f212bbf9a9a4a25606b1bc36585c1 (diff) | |
download | postgresql-0a9cbcbfd2fdb8f7c8b602ab5fb1091be9141d9e.tar.gz postgresql-0a9cbcbfd2fdb8f7c8b602ab5fb1091be9141d9e.zip |
Get rid of the pg_shdepend entry for a TOAST table; it's unnecessary since
there's an indirect dependency on the owner via the parent table. We were
already handling indexes that way, but not toast tables for some reason.
Saves a little catalog space and cuts down the verbosity of checkSharedDependencies
reports.
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r-- | src/backend/commands/tablecmds.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index ee658056ec5..d7ad90d0217 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.222 2007/05/12 00:54:59 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.223 2007/05/14 20:24:41 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -5478,10 +5478,11 @@ ATExecChangeOwner(Oid relationOid, Oid newOwnerId, bool recursing) /* * Update owner dependency reference, if any. A composite type has * none, because it's tracked for the pg_type entry instead of here; - * indexes don't have their own entries either. + * indexes and TOAST tables don't have their own entries either. */ if (tuple_class->relkind != RELKIND_COMPOSITE_TYPE && - tuple_class->relkind != RELKIND_INDEX) + tuple_class->relkind != RELKIND_INDEX && + tuple_class->relkind != RELKIND_TOASTVALUE) changeDependencyOnOwner(RelationRelationId, relationOid, newOwnerId); |