summaryrefslogtreecommitdiff
path: root/src/include/nodes/parsenodes.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-11-14 18:37:49 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-11-14 18:37:49 +0000
commit2cf48ca04bf59985117e04dd71644a507be90dbb (patch)
tree6b1033da07f1805a79bcfb67345aba778559d74e /src/include/nodes/parsenodes.h
parent8a9315ca92804bd32b3ee864bf83d98840e1a947 (diff)
Extend CREATE DATABASE to allow selection of a template database to be
cloned, rather than always cloning template1. Modify initdb to generate two identical databases rather than one, template0 and template1. Connections to template0 are disallowed, so that it will always remain in its virgin as-initdb'd state. pg_dumpall now dumps databases with restore commands that say CREATE DATABASE foo WITH TEMPLATE = template0. This allows proper behavior when there is user-added data in template1. initdb forced!
Diffstat (limited to 'src/include/nodes/parsenodes.h')
-rw-r--r--src/include/nodes/parsenodes.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h
index 469230e1c62..a15d4c0ad85 100644
--- a/src/include/nodes/parsenodes.h
+++ b/src/include/nodes/parsenodes.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: parsenodes.h,v 1.120 2000/11/12 00:37:01 tgl Exp $
+ * $Id: parsenodes.h,v 1.121 2000/11/14 18:37:48 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -645,9 +645,10 @@ typedef struct LoadStmt
typedef struct CreatedbStmt
{
NodeTag type;
- char *dbname; /* database to create */
- char *dbpath; /* location of database */
- int encoding; /* default encoding (see regex/pg_wchar.h) */
+ char *dbname; /* name of database to create */
+ char *dbpath; /* location of database (NULL = default) */
+ char *dbtemplate; /* template to use (NULL = default) */
+ int encoding; /* MULTIBYTE encoding (-1 = use default) */
} CreatedbStmt;
/* ----------------------