diff options
| author | Tom Lane | 2008-03-19 18:38:30 +0000 |
|---|---|---|
| committer | Tom Lane | 2008-03-19 18:38:30 +0000 |
| commit | 5507b22dfcde9f86590e3904f6279d3600abe1b7 (patch) | |
| tree | 3e444909aee980f97190e04ce099e8dfef452f7b /src/include | |
| parent | a9686591d7fa79a39e704c2585ebcd8da80d3e72 (diff) | |
Support ALTER TYPE RENAME. Petr Jelinek
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/catalog/pg_type.h | 4 | ||||
| -rw-r--r-- | src/include/commands/tablecmds.h | 8 | ||||
| -rw-r--r-- | src/include/commands/typecmds.h | 3 |
3 files changed, 10 insertions, 5 deletions
diff --git a/src/include/catalog/pg_type.h b/src/include/catalog/pg_type.h index 7ece0af78c2..961f35e5897 100644 --- a/src/include/catalog/pg_type.h +++ b/src/include/catalog/pg_type.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/catalog/pg_type.h,v 1.191 2008/01/01 19:45:57 momjian Exp $ + * $PostgreSQL: pgsql/src/include/catalog/pg_type.h,v 1.192 2008/03/19 18:38:30 tgl Exp $ * * NOTES * the genbki.sh script reads this file and generates .bki @@ -682,7 +682,7 @@ extern void GenerateTypeDependencies(Oid typeNamespace, Node *defaultExpr, bool rebuild); -extern void TypeRename(Oid typeOid, const char *newTypeName, +extern void RenameTypeInternal(Oid typeOid, const char *newTypeName, Oid typeNamespace); extern char *makeArrayTypeName(const char *typeName, Oid typeNamespace); diff --git a/src/include/commands/tablecmds.h b/src/include/commands/tablecmds.h index e9c965439ce..700c1bd42ef 100644 --- a/src/include/commands/tablecmds.h +++ b/src/include/commands/tablecmds.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/commands/tablecmds.h,v 1.37 2008/01/30 19:46:48 tgl Exp $ + * $PostgreSQL: pgsql/src/include/commands/tablecmds.h,v 1.38 2008/03/19 18:38:30 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -44,10 +44,14 @@ extern void renameatt(Oid myrelid, bool recurse, bool recursing); -extern void renamerel(Oid myrelid, +extern void RenameRelation(Oid myrelid, const char *newrelname, ObjectType reltype); +extern void RenameRelationInternal(Oid myrelid, + const char *newrelname, + Oid namespaceId); + extern void find_composite_type_dependencies(Oid typeOid, const char *origTblName, const char *origTypeName); diff --git a/src/include/commands/typecmds.h b/src/include/commands/typecmds.h index 71d0ceefa81..ce807b56d08 100644 --- a/src/include/commands/typecmds.h +++ b/src/include/commands/typecmds.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/commands/typecmds.h,v 1.22 2008/01/01 19:45:57 momjian Exp $ + * $PostgreSQL: pgsql/src/include/commands/typecmds.h,v 1.23 2008/03/19 18:38:30 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -35,6 +35,7 @@ extern void AlterDomainDropConstraint(List *names, const char *constrName, extern List *GetDomainConstraints(Oid typeOid); +extern void RenameType(List *names, const char *newTypeName); extern void AlterTypeOwner(List *names, Oid newOwnerId); extern void AlterTypeOwnerInternal(Oid typeOid, Oid newOwnerId, bool hasDependEntry); |
