diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-03-26 19:17:02 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-03-26 19:17:02 +0000 |
commit | 1dbf8aa7a8159875bb46f6ee6ab0116eee76869b (patch) | |
tree | 9aa08b4247dc230b6d35aa9c34b488b36b716693 /src/include/commands | |
parent | da631e931f9da4bc5df4bfd39f0c42684adfb8e5 (diff) | |
download | postgresql-1dbf8aa7a8159875bb46f6ee6ab0116eee76869b.tar.gz postgresql-1dbf8aa7a8159875bb46f6ee6ab0116eee76869b.zip |
pg_class has a relnamespace column. You can create and access tables
in schemas other than the system namespace; however, there's no search
path yet, and not all operations work yet on tables outside the system
namespace.
Diffstat (limited to 'src/include/commands')
-rw-r--r-- | src/include/commands/cluster.h | 4 | ||||
-rw-r--r-- | src/include/commands/command.h | 7 | ||||
-rw-r--r-- | src/include/commands/comment.h | 4 | ||||
-rw-r--r-- | src/include/commands/defrem.h | 10 | ||||
-rw-r--r-- | src/include/commands/rename.h | 4 |
5 files changed, 14 insertions, 15 deletions
diff --git a/src/include/commands/cluster.h b/src/include/commands/cluster.h index d0760070841..c04cca24b42 100644 --- a/src/include/commands/cluster.h +++ b/src/include/commands/cluster.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994-5, Regents of the University of California * - * $Id: cluster.h,v 1.12 2001/11/05 17:46:33 momjian Exp $ + * $Id: cluster.h,v 1.13 2002/03/26 19:16:40 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -23,6 +23,6 @@ /* * functions */ -extern void cluster(char *oldrelname, char *oldindexname); +extern void cluster(RangeVar *oldrelation, char *oldindexname); #endif /* CLUSTER_H */ diff --git a/src/include/commands/command.h b/src/include/commands/command.h index 36757b1f702..1601898b405 100644 --- a/src/include/commands/command.h +++ b/src/include/commands/command.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: command.h,v 1.34 2002/03/21 16:01:41 tgl Exp $ + * $Id: command.h,v 1.35 2002/03/26 19:16:40 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -62,10 +62,9 @@ extern void AlterTableDropConstraint(const char *relationName, bool inh, const char *constrName, int behavior); -extern void AlterTableCreateToastTable(const char *relationName, - bool silent); +extern void AlterTableCreateToastTable(Oid relOid, bool silent); -extern void AlterTableOwner(const char *relationName, const char *newOwnerName); +extern void AlterTableOwner(const RangeVar *tgtrel, const char *newOwnerName); /* * LOCK diff --git a/src/include/commands/comment.h b/src/include/commands/comment.h index 4d83372bdd6..f1e9a760b0b 100644 --- a/src/include/commands/comment.h +++ b/src/include/commands/comment.h @@ -25,8 +25,8 @@ *------------------------------------------------------------------ */ -extern void CommentObject(int objtype, char *objname, char *objproperty, - List *objlist, char *comment); +extern void CommentObject(int objtype, char * schemaname, char *objname, + char *objproperty, List *objlist, char *comment); extern void DeleteComments(Oid oid, Oid classoid); diff --git a/src/include/commands/defrem.h b/src/include/commands/defrem.h index 78b34614d58..97924979c28 100644 --- a/src/include/commands/defrem.h +++ b/src/include/commands/defrem.h @@ -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.31 2002/03/19 02:18:23 momjian Exp $ + * $Id: defrem.h,v 1.32 2002/03/26 19:16:47 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -19,7 +19,7 @@ /* * prototypes in indexcmds.c */ -extern void DefineIndex(char *heapRelationName, +extern void DefineIndex(RangeVar *heapRelation, char *indexRelationName, char *accessMethodName, List *attributeList, @@ -27,9 +27,9 @@ extern void DefineIndex(char *heapRelationName, bool primary, Expr *predicate, List *rangetable); -extern void RemoveIndex(char *name); -extern void ReindexIndex(const char *indexRelationName, bool force); -extern void ReindexTable(const char *relationName, bool force); +extern void RemoveIndex(RangeVar *relation); +extern void ReindexIndex(RangeVar *indexRelation, bool force); +extern void ReindexTable(RangeVar *relation, bool force); extern void ReindexDatabase(const char *databaseName, bool force, bool all); /* diff --git a/src/include/commands/rename.h b/src/include/commands/rename.h index 76b5167a83b..7bfd0479167 100644 --- a/src/include/commands/rename.h +++ b/src/include/commands/rename.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: rename.h,v 1.13 2001/11/05 17:46:33 momjian Exp $ + * $Id: rename.h,v 1.14 2002/03/26 19:16:49 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -19,7 +19,7 @@ extern void renameatt(char *relname, char *newattname, int recurse); -extern void renamerel(const char *oldrelname, +extern void renamerel(const RangeVar *relation, const char *newrelname); #endif /* RENAME_H */ |