2002-12-06 06:00:34 +01:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
2002-12-10 17:12:53 +01:00
|
|
|
* typecmds.h
|
|
|
|
* prototypes for typecmds.c.
|
2002-12-06 06:00:34 +01:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
2003-08-04 02:43:34 +02:00
|
|
|
* $Id: typecmds.h,v 1.6 2003/08/04 00:43:30 momjian Exp $
|
2002-12-06 06:00:34 +01:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef TYPECMDS_H
|
|
|
|
#define TYPECMDS_H
|
|
|
|
|
2002-12-10 17:12:53 +01:00
|
|
|
#include "nodes/parsenodes.h"
|
|
|
|
|
2003-01-06 01:31:45 +01:00
|
|
|
|
2002-12-10 17:12:53 +01:00
|
|
|
#define DEFAULT_TYPDELIM ','
|
|
|
|
|
2002-12-06 06:00:34 +01:00
|
|
|
extern void DefineType(List *names, List *parameters);
|
|
|
|
extern void RemoveType(List *names, DropBehavior behavior);
|
|
|
|
extern void RemoveTypeById(Oid typeOid);
|
|
|
|
extern void DefineDomain(CreateDomainStmt *stmt);
|
|
|
|
extern void RemoveDomain(List *names, DropBehavior behavior);
|
|
|
|
extern Oid DefineCompositeType(const RangeVar *typevar, List *coldeflist);
|
|
|
|
|
|
|
|
extern void AlterDomainDefault(List *names, Node *defaultRaw);
|
|
|
|
extern void AlterDomainNotNull(List *names, bool notNull);
|
|
|
|
extern void AlterDomainAddConstraint(List *names, Node *constr);
|
|
|
|
extern void AlterDomainDropConstraint(List *names, const char *constrName,
|
2003-08-04 02:43:34 +02:00
|
|
|
DropBehavior behavior);
|
2002-12-06 06:00:34 +01:00
|
|
|
|
2003-02-03 22:15:45 +01:00
|
|
|
extern List *GetDomainConstraints(Oid typeOid);
|
|
|
|
|
2003-01-06 01:31:45 +01:00
|
|
|
extern void AlterTypeOwner(List *names, AclId newOwnerSysId);
|
|
|
|
|
2002-12-06 06:00:34 +01:00
|
|
|
#endif /* TYPECMDS_H */
|