mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
The contents of command.c, creatinh.c, define.c, remove.c and rename.c
have been divided according to the type of object manipulated - so ALTER TABLE code is in tablecmds.c, aggregate commands in aggregatecmds.c and so on. A few common support routines remain in define.c (prototypes in src/include/commands/defrem.h). No code has been changed except for includes to reflect the new files. The prototypes for aggregatecmds.c, functioncmds.c, operatorcmds.c, and typecmds.c remain in src/include/commands/defrem.h. From John Gray <jgray@azuli.co.uk>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Id: defrem.h,v 1.34 2002/04/09 20:35:54 tgl Exp $
|
||||
* $Id: defrem.h,v 1.35 2002/04/15 05:22:03 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
#include "nodes/parsenodes.h"
|
||||
|
||||
#define DEFAULT_TYPDELIM ','
|
||||
|
||||
/*
|
||||
* prototypes in indexcmds.c
|
||||
*/
|
||||
@@ -33,22 +35,33 @@ extern void ReindexTable(RangeVar *relation, bool force);
|
||||
extern void ReindexDatabase(const char *databaseName, bool force, bool all);
|
||||
|
||||
/*
|
||||
* prototypes in define.c
|
||||
* DefineFoo and RemoveFoo are now both in foocmds.c
|
||||
*/
|
||||
extern void CreateFunction(ProcedureStmt *stmt);
|
||||
extern void DefineOperator(List *names, List *parameters);
|
||||
extern void DefineAggregate(List *names, List *parameters);
|
||||
extern void DefineType(List *names, List *parameters);
|
||||
extern void DefineDomain(CreateDomainStmt *stmt);
|
||||
|
||||
/*
|
||||
* prototypes in remove.c
|
||||
*/
|
||||
extern void RemoveDomain(List *names, int behavior);
|
||||
extern void CreateFunction(ProcedureStmt *stmt);
|
||||
extern void RemoveFunction(List *functionName, List *argTypes);
|
||||
|
||||
extern void DefineOperator(List *names, List *parameters);
|
||||
extern void RemoveOperator(char *operatorName,
|
||||
TypeName *typeName1, TypeName *typeName2);
|
||||
extern void RemoveType(List *names);
|
||||
TypeName *typeName1, TypeName *typeName2);
|
||||
|
||||
extern void DefineAggregate(List *names, List *parameters);
|
||||
extern void RemoveAggregate(List *aggName, TypeName *aggType);
|
||||
|
||||
extern void DefineType(List *names, List *parameters);
|
||||
extern void RemoveType(List *names);
|
||||
extern void DefineDomain(CreateDomainStmt *stmt);
|
||||
extern void RemoveDomain(List *names, int behavior);
|
||||
|
||||
|
||||
/* support routines in define.c */
|
||||
|
||||
extern void case_translate_language_name(const char *input, char *output);
|
||||
|
||||
extern char *defGetString(DefElem *def);
|
||||
extern double defGetNumeric(DefElem *def);
|
||||
extern List *defGetQualifiedName(DefElem *def);
|
||||
extern TypeName *defGetTypeName(DefElem *def);
|
||||
extern int defGetTypeLength(DefElem *def);
|
||||
|
||||
#endif /* DEFREM_H */
|
||||
|
||||
Reference in New Issue
Block a user