summaryrefslogtreecommitdiff
path: root/src/include/commands/schemacmds.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-06-09 09:10:14 +0200
committerPeter Eisentraut <peter@eisentraut.org>2020-06-09 09:39:46 +0200
commitb1d32d3e3230f00b5baba08f75b4f665c7d6dac6 (patch)
tree9b0b6bba1aab417382105d09fc2800f346c7ce2b /src/include/commands/schemacmds.h
parentb27c90bbe4a3d607f8fc6703c7183e56e4039acd (diff)
Unify drop-by-OID functions
There are a number of Remove${Something}ById() functions that are essentially identical in structure and only different in which catalog they are working on. Refactor this to be one generic function. The information about which oid column, index, etc. to use was already available in ObjectProperty for most catalogs, in a few cases it was easily added. Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com> Reviewed-by: Robert Haas <robertmhaas@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/331d9661-1743-857f-1cbb-d5728bcd62cb%402ndquadrant.com
Diffstat (limited to 'src/include/commands/schemacmds.h')
-rw-r--r--src/include/commands/schemacmds.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/include/commands/schemacmds.h b/src/include/commands/schemacmds.h
index ac88a35399a..e0139a8ea62 100644
--- a/src/include/commands/schemacmds.h
+++ b/src/include/commands/schemacmds.h
@@ -22,8 +22,6 @@ extern Oid CreateSchemaCommand(CreateSchemaStmt *parsetree,
const char *queryString,
int stmt_location, int stmt_len);
-extern void RemoveSchemaById(Oid schemaOid);
-
extern ObjectAddress RenameSchema(const char *oldname, const char *newname);
extern ObjectAddress AlterSchemaOwner(const char *name, Oid newOwnerId);
extern void AlterSchemaOwner_oid(Oid schemaOid, Oid newOwnerId);