mirror of
https://github.com/postgres/postgres.git
synced 2025-10-25 13:17:41 +03:00
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.
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
/*
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user