mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-07-21 09:29:39 +02:00
objects are specified, we drop them all in a single performMultipleDeletions call. This makes the RESTRICT/CASCADE checks more relaxed: it's not counted as a cascade if one of the later objects has a dependency on an earlier one. NOTICE messages about such cases go away, too. In passing, fix the permissions check for DROP CONVERSION, which for some reason was never made role-aware, and omitted the namespace-owner exemption too. Alex Hunsaker, with further fiddling by me.
31 lines
942 B
C
31 lines
942 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* schemacmds.h
|
|
* prototypes for schemacmds.c.
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $PostgreSQL: pgsql/src/include/commands/schemacmds.h,v 1.19 2008/06/14 18:04:34 tgl Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef SCHEMACMDS_H
|
|
#define SCHEMACMDS_H
|
|
|
|
#include "nodes/parsenodes.h"
|
|
|
|
extern void CreateSchemaCommand(CreateSchemaStmt *parsetree,
|
|
const char *queryString);
|
|
|
|
extern void RemoveSchemas(DropStmt *drop);
|
|
extern void RemoveSchemaById(Oid schemaOid);
|
|
|
|
extern void RenameSchema(const char *oldname, const char *newname);
|
|
extern void AlterSchemaOwner(const char *name, Oid newOwnerId);
|
|
extern void AlterSchemaOwner_oid(Oid schemaOid, Oid newOwnerId);
|
|
|
|
#endif /* SCHEMACMDS_H */
|