diff options
Diffstat (limited to 'src/backend/commands/schemacmds.c')
-rw-r--r-- | src/backend/commands/schemacmds.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/backend/commands/schemacmds.c b/src/backend/commands/schemacmds.c index 1e6e731eb58..30138625288 100644 --- a/src/backend/commands/schemacmds.c +++ b/src/backend/commands/schemacmds.c @@ -210,29 +210,6 @@ CreateSchemaCommand(CreateSchemaStmt *stmt, const char *queryString, return namespaceId; } -/* - * Guts of schema deletion. - */ -void -RemoveSchemaById(Oid schemaOid) -{ - Relation relation; - HeapTuple tup; - - relation = table_open(NamespaceRelationId, RowExclusiveLock); - - tup = SearchSysCache1(NAMESPACEOID, - ObjectIdGetDatum(schemaOid)); - if (!HeapTupleIsValid(tup)) /* should not happen */ - elog(ERROR, "cache lookup failed for namespace %u", schemaOid); - - CatalogTupleDelete(relation, &tup->t_self); - - ReleaseSysCache(tup); - - table_close(relation, RowExclusiveLock); -} - /* * Rename schema |