2004-06-18 08:14:31 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* tablespace.h
|
|
|
|
* prototypes for tablespace.c.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
|
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
2004-07-11 21:52:52 +02:00
|
|
|
* $PostgreSQL: pgsql/src/include/commands/tablespace.h,v 1.3 2004/07/11 19:52:52 tgl Exp $
|
2004-06-18 08:14:31 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef TABLESPACE_H
|
|
|
|
#define TABLESPACE_H
|
|
|
|
|
|
|
|
#include "nodes/parsenodes.h"
|
|
|
|
|
|
|
|
extern void CreateTableSpace(CreateTableSpaceStmt *stmt);
|
|
|
|
|
|
|
|
extern void DropTableSpace(DropTableSpaceStmt *stmt);
|
|
|
|
|
2004-07-11 21:52:52 +02:00
|
|
|
extern void TablespaceCreateDbspace(Oid spcNode, Oid dbNode, bool isRedo);
|
2004-06-18 08:14:31 +02:00
|
|
|
|
|
|
|
extern Oid get_tablespace_oid(const char *tablespacename);
|
|
|
|
|
|
|
|
extern char *get_tablespace_name(Oid spc_oid);
|
|
|
|
|
2004-06-25 23:55:59 +02:00
|
|
|
extern void RenameTableSpace(const char *oldname, const char *newname);
|
|
|
|
extern void AlterTableSpaceOwner(const char *name, AclId newOwnerSysId);
|
|
|
|
|
2004-06-18 08:14:31 +02:00
|
|
|
#endif /* TABLESPACE_H */
|