summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorThomas G. Lockhart1997-11-07 06:38:51 +0000
committerThomas G. Lockhart1997-11-07 06:38:51 +0000
commit7d1f2f8a270681f463a1ec5e433688248c58cc97 (patch)
treec23582e8512cc958874f98963e1c75b9ef3e56b6 /src/include
parentd98f2f9985e4030a00fc41e21bd36474febe5741 (diff)
Support alternate database locations.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/miscadmin.h7
-rw-r--r--src/include/nodes/parsenodes.h3
-rw-r--r--src/include/parser/dbcommands.h4
3 files changed, 10 insertions, 4 deletions
diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h
index 9ca72848d23..ff83dda86c0 100644
--- a/src/include/miscadmin.h
+++ b/src/include/miscadmin.h
@@ -11,7 +11,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: miscadmin.h,v 1.16 1997/09/18 14:42:22 vadim Exp $
+ * $Id: miscadmin.h,v 1.17 1997/11/07 06:38:29 thomas Exp $
*
* NOTES
* some of the information in this file will be moved to
@@ -107,6 +107,11 @@ extern Oid LastOidProcessed; /* for query rewrite */
* POSTGRES directory path definitions. *
*****************************************************************************/
+/* in utils/misc/database.c */
+extern void GetRawDatabaseInfo(char *name, Oid *owner, Oid *db_id, char *path);
+extern int GetDatabaseInfo(char *name, Oid *owner, char *path);
+extern char *ExpandDatabasePath(char *path);
+
/* now in utils/init/miscinit.c */
extern char *GetDatabasePath(void);
extern char *GetDatabaseName(void);
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index 6e9e49b1c01..6fd9631f67b 100644
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: parsenodes.h,v 1.29 1997/10/28 15:10:39 vadim Exp $
+ * $Id: parsenodes.h,v 1.30 1997/11/07 06:38:38 thomas Exp $
*
*-------------------------------------------------------------------------
*/
@@ -473,6 +473,7 @@ typedef struct CreatedbStmt
{
NodeTag type;
char *dbname; /* database to create */
+ char *dbpath; /* location of database */
} CreatedbStmt;
/* ----------------------
diff --git a/src/include/parser/dbcommands.h b/src/include/parser/dbcommands.h
index 76b1dc6a0ee..31c6efd2db8 100644
--- a/src/include/parser/dbcommands.h
+++ b/src/include/parser/dbcommands.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: dbcommands.h,v 1.4 1997/09/08 02:38:05 momjian Exp $
+ * $Id: dbcommands.h,v 1.5 1997/11/07 06:38:09 thomas Exp $
*
*-------------------------------------------------------------------------
*/
@@ -20,7 +20,7 @@
#define SIGKILLDAEMON1 SIGINT
#define SIGKILLDAEMON2 SIGTERM
-extern void createdb(char *dbname);
+extern void createdb(char *dbname, char *dbpath);
extern void destroydb(char *dbname);
#endif /* DBCOMMANDS_H */