aboutsummaryrefslogtreecommitdiff
path: root/src/include/commands/tablespace.h
blob: 17821493f45994e98a0cd6fa417833de02077b6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*-------------------------------------------------------------------------
 *
 * 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
 *
 * $PostgreSQL: pgsql/src/include/commands/tablespace.h,v 1.2 2004/06/25 21:55:58 tgl Exp $
 *
 *-------------------------------------------------------------------------
 */
#ifndef TABLESPACE_H
#define TABLESPACE_H

#include "nodes/parsenodes.h"

extern void CreateTableSpace(CreateTableSpaceStmt *stmt);

extern void DropTableSpace(DropTableSpaceStmt *stmt);

extern void TablespaceCreateDbspace(Oid spcNode, Oid dbNode);

extern Oid	get_tablespace_oid(const char *tablespacename);

extern char *get_tablespace_name(Oid spc_oid);

extern void RenameTableSpace(const char *oldname, const char *newname);
extern void AlterTableSpaceOwner(const char *name, AclId newOwnerSysId);

#endif   /* TABLESPACE_H */