~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to src/include/commands/tablespace.h

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * tablespace.h
 
4
 *              Tablespace management commands (create/drop tablespace).
 
5
 *
 
6
 *
 
7
 * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
 
8
 * Portions Copyright (c) 1994, Regents of the University of California
 
9
 *
 
10
 * $PostgreSQL: pgsql/src/include/commands/tablespace.h,v 1.8 2004-12-31 22:03:28 pgsql Exp $
 
11
 *
 
12
 *-------------------------------------------------------------------------
 
13
 */
 
14
#ifndef TABLESPACE_H
 
15
#define TABLESPACE_H
 
16
 
 
17
#include "access/xlog.h"
 
18
#include "nodes/parsenodes.h"
 
19
 
 
20
/* XLOG stuff */
 
21
#define XLOG_TBLSPC_CREATE              0x00
 
22
#define XLOG_TBLSPC_DROP                0x10
 
23
 
 
24
typedef struct xl_tblspc_create_rec
 
25
{
 
26
        Oid                     ts_id;
 
27
        char            ts_path[1];             /* VARIABLE LENGTH STRING */
 
28
}       xl_tblspc_create_rec;
 
29
 
 
30
typedef struct xl_tblspc_drop_rec
 
31
{
 
32
        Oid                     ts_id;
 
33
}       xl_tblspc_drop_rec;
 
34
 
 
35
 
 
36
extern void CreateTableSpace(CreateTableSpaceStmt *stmt);
 
37
extern void DropTableSpace(DropTableSpaceStmt *stmt);
 
38
extern void RenameTableSpace(const char *oldname, const char *newname);
 
39
extern void AlterTableSpaceOwner(const char *name, AclId newOwnerSysId);
 
40
 
 
41
extern void TablespaceCreateDbspace(Oid spcNode, Oid dbNode, bool isRedo);
 
42
 
 
43
extern Oid      GetDefaultTablespace(void);
 
44
 
 
45
extern Oid      get_tablespace_oid(const char *tablespacename);
 
46
extern char *get_tablespace_name(Oid spc_oid);
 
47
 
 
48
extern bool directory_is_empty(const char *path);
 
49
 
 
50
extern void tblspc_redo(XLogRecPtr lsn, XLogRecord *rptr);
 
51
extern void tblspc_undo(XLogRecPtr lsn, XLogRecord *rptr);
 
52
extern void tblspc_desc(char *buf, uint8 xl_info, char *rec);
 
53
 
 
54
#endif   /* TABLESPACE_H */