diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-06-18 06:14:31 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-06-18 06:14:31 +0000 |
commit | 2467394ee1566e82d0314d12a0d1c0a5670a28c9 (patch) | |
tree | 57b87b8c181a9c3eb0f33bf775a5f31b9de8b890 /src/include/commands/tablespace.h | |
parent | 474875f4438ea0d18f9f4170117bc407e6812515 (diff) | |
download | postgresql-2467394ee1566e82d0314d12a0d1c0a5670a28c9.tar.gz postgresql-2467394ee1566e82d0314d12a0d1c0a5670a28c9.zip |
Tablespaces. Alternate database locations are dead, long live tablespaces.
There are various things left to do: contrib dbsize and oid2name modules
need work, and so does the documentation. Also someone should think about
COMMENT ON TABLESPACE and maybe RENAME TABLESPACE. Also initlocation is
dead, it just doesn't know it yet.
Gavin Sherry and Tom Lane.
Diffstat (limited to 'src/include/commands/tablespace.h')
-rw-r--r-- | src/include/commands/tablespace.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/include/commands/tablespace.h b/src/include/commands/tablespace.h new file mode 100644 index 00000000000..129413ac14b --- /dev/null +++ b/src/include/commands/tablespace.h @@ -0,0 +1,29 @@ +/*------------------------------------------------------------------------- + * + * 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.1 2004/06/18 06:14:08 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); + +#endif /* TABLESPACE_H */ |