mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
First batch of object rename commands.
This commit is contained in:
21
src/include/commands/alter.h
Normal file
21
src/include/commands/alter.h
Normal file
@@ -0,0 +1,21 @@
|
||||
/*-------------------------------------------------------------------------
|
||||
*
|
||||
* alter.h
|
||||
* prototypes for alter.h
|
||||
*
|
||||
*
|
||||
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: alter.h,v 1.1 2003/06/27 14:45:31 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
#ifndef ALTER_H
|
||||
#define ALTER_H
|
||||
|
||||
#include "nodes/parsenodes.h"
|
||||
|
||||
extern void ExecRenameStmt(RenameStmt *stmt);
|
||||
|
||||
#endif /* ALTER_H */
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: conversioncmds.h,v 1.3 2002/09/04 20:31:42 momjian Exp $
|
||||
* $Id: conversioncmds.h,v 1.4 2003/06/27 14:45:31 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -19,5 +19,6 @@
|
||||
|
||||
extern void CreateConversionCommand(CreateConversionStmt *parsetree);
|
||||
extern void DropConversionCommand(List *conversion_name, DropBehavior behavior);
|
||||
extern void RenameConversion(List *name, const char *newname);
|
||||
|
||||
#endif /* CONVERSIONCMDS_H */
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: dbcommands.h,v 1.26 2002/09/05 00:43:07 tgl Exp $
|
||||
* $Id: dbcommands.h,v 1.27 2003/06/27 14:45:31 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -18,9 +18,10 @@
|
||||
|
||||
extern void createdb(const CreatedbStmt *stmt);
|
||||
extern void dropdb(const char *dbname);
|
||||
extern void RenameDatabase(const char *oldname, const char *newname);
|
||||
extern void AlterDatabaseSet(AlterDatabaseSetStmt *stmt);
|
||||
|
||||
extern Oid get_database_oid(const char *dbname);
|
||||
extern Oid get_database_owner(Oid dbid);
|
||||
extern Oid get_database_oid(const char *dbname);
|
||||
extern char * get_database_name(Oid dbid);
|
||||
|
||||
#endif /* DBCOMMANDS_H */
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: defrem.h,v 1.50 2002/12/10 16:12:52 tgl Exp $
|
||||
* $Id: defrem.h,v 1.51 2003/06/27 14:45:31 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -38,6 +38,7 @@ extern void RemoveFunction(RemoveFuncStmt *stmt);
|
||||
extern void RemoveFunctionById(Oid funcOid);
|
||||
extern void SetFunctionReturnType(Oid funcOid, Oid newRetType);
|
||||
extern void SetFunctionArgType(Oid funcOid, int argIndex, Oid newArgType);
|
||||
extern void RenameFunction(List *name, List *argtypes, const char *newname);
|
||||
extern void CreateCast(CreateCastStmt *stmt);
|
||||
extern void DropCast(DropCastStmt *stmt);
|
||||
extern void DropCastById(Oid castOid);
|
||||
@@ -50,12 +51,13 @@ extern void RemoveOperatorById(Oid operOid);
|
||||
/* commands/aggregatecmds.c */
|
||||
extern void DefineAggregate(List *names, List *parameters);
|
||||
extern void RemoveAggregate(RemoveAggrStmt *stmt);
|
||||
extern void RenameAggregate(List *name, TypeName *basetype, const char *newname);
|
||||
|
||||
/* commands/opclasscmds.c */
|
||||
extern void DefineOpClass(CreateOpClassStmt *stmt);
|
||||
extern void RemoveOpClass(RemoveOpClassStmt *stmt);
|
||||
extern void RemoveOpClassById(Oid opclassOid);
|
||||
|
||||
extern void RenameOpClass(List *name, const char *access_method, const char *newname);
|
||||
|
||||
/* support routines in commands/define.c */
|
||||
|
||||
|
||||
@@ -14,5 +14,6 @@
|
||||
extern void CreateProceduralLanguage(CreatePLangStmt *stmt);
|
||||
extern void DropProceduralLanguage(DropPLangStmt *stmt);
|
||||
extern void DropProceduralLanguageById(Oid langOid);
|
||||
extern void RenameLanguage(const char *oldname, const char *newname);
|
||||
|
||||
#endif /* PROCLANG_H */
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: schemacmds.h,v 1.3 2002/09/04 20:31:42 momjian Exp $
|
||||
* $Id: schemacmds.h,v 1.4 2003/06/27 14:45:31 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -22,4 +22,6 @@ extern void CreateSchemaCommand(CreateSchemaStmt *parsetree);
|
||||
extern void RemoveSchema(List *names, DropBehavior behavior);
|
||||
extern void RemoveSchemaById(Oid schemaOid);
|
||||
|
||||
extern void RenameSchema(const char *oldname, const char *newname);
|
||||
|
||||
#endif /* SCHEMACMDS_H */
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Commands for manipulating users and groups.
|
||||
*
|
||||
*
|
||||
* $Id: user.h,v 1.20 2002/10/21 19:46:45 tgl Exp $
|
||||
* $Id: user.h,v 1.21 2003/06/27 14:45:31 petere Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -22,10 +22,12 @@ extern void CreateUser(CreateUserStmt *stmt);
|
||||
extern void AlterUser(AlterUserStmt *stmt);
|
||||
extern void AlterUserSet(AlterUserSetStmt *stmt);
|
||||
extern void DropUser(DropUserStmt *stmt);
|
||||
extern void RenameUser(const char *oldname, const char *newname);
|
||||
|
||||
extern void CreateGroup(CreateGroupStmt *stmt);
|
||||
extern void AlterGroup(AlterGroupStmt *stmt, const char *tag);
|
||||
extern void DropGroup(DropGroupStmt *stmt);
|
||||
extern void RenameGroup(const char *oldname, const char *newname);
|
||||
|
||||
extern Datum update_pg_pwd_and_pg_group(PG_FUNCTION_ARGS);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user