PostgreSQL Source Code  git master
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * typecmds.h
4  * prototypes for typecmds.c.
5  *
6  *
7  * Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/commands/typecmds.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef TYPECMDS_H
15 #define TYPECMDS_H
17 #include "access/htup.h"
18 #include "catalog/dependency.h"
19 #include "nodes/parsenodes.h"
22 #define DEFAULT_TYPDELIM ','
24 extern ObjectAddress DefineType(ParseState *pstate, List *names, List *parameters);
25 extern void RemoveTypeById(Oid typeOid);
29 extern ObjectAddress AlterEnum(AlterEnumStmt *stmt, bool isTopLevel);
30 extern ObjectAddress DefineCompositeType(RangeVar *typevar, List *coldeflist);
31 extern Oid AssignTypeArrayOid(void);
33 extern ObjectAddress AlterDomainDefault(List *names, Node *defaultRaw);
34 extern ObjectAddress AlterDomainNotNull(List *names, bool notNull);
35 extern ObjectAddress AlterDomainAddConstraint(List *names, Node *constr,
36  ObjectAddress *constrAddr);
37 extern ObjectAddress AlterDomainValidateConstraint(List *names, const char *constrName);
38 extern ObjectAddress AlterDomainDropConstraint(List *names, const char *constrName,
39  DropBehavior behavior, bool missing_ok);
41 extern void checkDomainOwner(HeapTuple tup);
43 extern ObjectAddress RenameType(RenameStmt *stmt);
45 extern ObjectAddress AlterTypeOwner(List *names, Oid newOwnerId, ObjectType objecttype);
46 extern void AlterTypeOwner_oid(Oid typeOid, Oid newOwnerId, bool hasDependEntry);
47 extern void AlterTypeOwnerInternal(Oid typeOid, Oid newOwnerId);
49 extern ObjectAddress AlterTypeNamespace(List *names, const char *newschema,
50  ObjectType objecttype, Oid *oldschema);
51 extern Oid AlterTypeNamespace_oid(Oid typeOid, Oid nspOid, ObjectAddresses *objsMoved);
52 extern Oid AlterTypeNamespaceInternal(Oid typeOid, Oid nspOid,
53  bool isImplicitArray,
54  bool errorOnTableType,
55  ObjectAddresses *objsMoved);
57 #endif /* TYPECMDS_H */
ObjectAddress AlterDomainDropConstraint(List *names, const char *constrName, DropBehavior behavior, bool missing_ok)
Definition: typecmds.c:2452
ObjectAddress AlterDomainAddConstraint(List *names, Node *constr, ObjectAddress *constrAddr)
Definition: typecmds.c:2542
Oid AlterTypeNamespaceInternal(Oid typeOid, Oid nspOid, bool isImplicitArray, bool errorOnTableType, ObjectAddresses *objsMoved)
Definition: typecmds.c:3579
ObjectAddress AlterEnum(AlterEnumStmt *stmt, bool isTopLevel)
Definition: typecmds.c:1279
Definition: nodes.h:513
ObjectAddress AlterTypeNamespace(List *names, const char *newschema, ObjectType objecttype, Oid *oldschema)
Definition: typecmds.c:3504
unsigned int Oid
Definition: postgres_ext.h:31
void checkDomainOwner(HeapTuple tup)
Definition: typecmds.c:3040
ObjectAddress AlterDomainDefault(List *names, Node *defaultRaw)
Definition: typecmds.c:2197
void RemoveTypeById(Oid typeOid)
Definition: typecmds.c:689
void AlterTypeOwner_oid(Oid typeOid, Oid newOwnerId, bool hasDependEntry)
Definition: typecmds.c:3409
ObjectAddress DefineType(ParseState *pstate, List *names, List *parameters)
Definition: typecmds.c:116
Definition: parsenodes.h:1632
Definition: parsenodes.h:1703
ObjectAddress DefineEnum(CreateEnumStmt *stmt)
Definition: typecmds.c:1157
ObjectAddress DefineDomain(CreateDomainStmt *stmt)
Definition: typecmds.c:729
Oid AssignTypeArrayOid(void)
Definition: typecmds.c:2098
ObjectAddress DefineCompositeType(RangeVar *typevar, List *coldeflist)
Definition: typecmds.c:2139
void AlterTypeOwnerInternal(Oid typeOid, Oid newOwnerId)
Definition: typecmds.c:3449
ObjectAddress DefineRange(CreateRangeStmt *stmt)
Definition: typecmds.c:1370
ObjectAddress AlterDomainValidateConstraint(List *names, const char *constrName)
Definition: typecmds.c:2651
ObjectAddress AlterTypeOwner(List *names, Oid newOwnerId, ObjectType objecttype)
Definition: typecmds.c:3300
Oid AlterTypeNamespace_oid(Oid typeOid, Oid nspOid, ObjectAddresses *objsMoved)
Definition: typecmds.c:3541
Definition: pg_list.h:45
ObjectAddress RenameType(RenameStmt *stmt)
Definition: typecmds.c:3222
ObjectAddress AlterDomainNotNull(List *names, bool notNull)
Definition: typecmds.c:2336