File tree 2 files changed +20
-8
lines changed
2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change 1
1
.\" This is -*-nroff-*-
2
2
.\" XXX standard disclaimer belongs here....
3
- .\" $Header: /cvsroot/pgsql/src/man/Attic/create_database.l,v 1.3 1997/05/19 14:23:08 momjian Exp $
3
+ .\" $Header: /cvsroot/pgsql/src/man/Attic/create_database.l,v 1.4 1997/11/07 06:33:55 thomas Exp $
4
4
.TH "CREATE DATABASE" SQL 11/05/95 PostgreSQL PostgreSQL
5
5
.SH NAME
6
6
create database \(em create a new database
7
7
.SH SYNOPSIS
8
8
.nf
9
- \fB create database \fP dbname
9
+ \fB create database \fP dbname [ \fB with location = ' \fP dbpath \fB ' \fP ]
10
10
.fi
11
11
.SH DESCRIPTION
12
- .BR " Create database"
12
+ .BR " create database"
13
13
creates a new Postgres database. The creator becomes the administrator
14
- of the new database.
14
+ of the new database. An alternate location can be specified as either an
15
+ environment variable known to the backend server (e.g. 'PGDATA2') or as
16
+ an absolute path name (e.g. '/home/postgres/data'). In either case, the
17
+ location must be pre-configured by
18
+ .BR initarea
19
+
15
20
.SH "SEE ALSO"
16
21
createdb(1),
17
22
drop database(l),
18
23
destroydb(1),
24
+ initarea(1),
19
25
initdb(1).
Original file line number Diff line number Diff line change 1
1
.\" This is -*-nroff-*-
2
2
.\" XXX standard disclaimer belongs here....
3
- .\" $Header: /cvsroot/pgsql/src/man/Attic/createdb.1,v 1.3 1997/08/26 17:29:54 momjian Exp $
3
+ .\" $Header: /cvsroot/pgsql/src/man/Attic/createdb.1,v 1.4 1997/11/07 06:33:57 thomas Exp $
4
4
.TH CREATEDB UNIX 11/05/95 PostgreSQL PostgreSQL
5
5
.SH NAME
6
6
createdb \(em create a database
15
15
[\c
16
16
.BR -p
17
17
port]
18
+ [\c
19
+ .BR -D
20
+ location]
18
21
[dbname]
19
22
.SH DESCRIPTION
20
- .IR Createdb
23
+ .BR createdb
21
24
creates a new database. The person who executes this command becomes
22
25
the database administrator, or DBA, for this database and is the only
23
26
person, other than the Postgres super-user, who can destroy it.
@@ -42,12 +45,12 @@ The optional argument
42
45
.IR dbname
43
46
specifies the name of the database to be created. The name must be
44
47
unique among all Postgres databases.
45
- .IR Dbname
48
+ .IR dbname
46
49
defaults to the value of the
47
50
.SM USER
48
51
environment variable.
49
52
.PP
50
- .IR Createdb
53
+ .IR createdb
51
54
understands the following command-line options:
52
55
.TP 5n
53
56
.BR " -a" " system"
@@ -59,6 +62,9 @@ to use in connecting to the
59
62
.IR postmaster
60
63
process. The default is site-specific.
61
64
.TP
65
+ .BR " -D" " dbpath"
66
+ Specifies the alternate database location for this database.
67
+ .TP
62
68
.BR " -h" " host"
63
69
Specifies the hostname of the machine on which the
64
70
.IR postmaster
You can’t perform that action at this time.
0 commit comments