Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d98f2f9

Browse files
author
Thomas G. Lockhart
committed
Support "with location" capability for database creation.
1 parent 6698389 commit d98f2f9

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

src/man/create_database.l

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
.\" This is -*-nroff-*-
22
.\" 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 $
44
.TH "CREATE DATABASE" SQL 11/05/95 PostgreSQL PostgreSQL
55
.SH NAME
66
create database \(em create a new database
77
.SH SYNOPSIS
88
.nf
9-
\fBcreate database\fP dbname
9+
\fBcreate database\fP dbname [\fBwith location = '\fPdbpath\fB'\fP]
1010
.fi
1111
.SH DESCRIPTION
12-
.BR "Create database"
12+
.BR "create database"
1313
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+
1520
.SH "SEE ALSO"
1621
createdb(1),
1722
drop database(l),
1823
destroydb(1),
24+
initarea(1),
1925
initdb(1).

src/man/createdb.1

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" This is -*-nroff-*-
22
.\" 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 $
44
.TH CREATEDB UNIX 11/05/95 PostgreSQL PostgreSQL
55
.SH NAME
66
createdb \(em create a database
@@ -15,9 +15,12 @@ host]
1515
[\c
1616
.BR -p
1717
port]
18+
[\c
19+
.BR -D
20+
location]
1821
[dbname]
1922
.SH DESCRIPTION
20-
.IR Createdb
23+
.BR createdb
2124
creates a new database. The person who executes this command becomes
2225
the database administrator, or DBA, for this database and is the only
2326
person, other than the Postgres super-user, who can destroy it.
@@ -42,12 +45,12 @@ The optional argument
4245
.IR dbname
4346
specifies the name of the database to be created. The name must be
4447
unique among all Postgres databases.
45-
.IR Dbname
48+
.IR dbname
4649
defaults to the value of the
4750
.SM USER
4851
environment variable.
4952
.PP
50-
.IR Createdb
53+
.IR createdb
5154
understands the following command-line options:
5255
.TP 5n
5356
.BR "-a" " system"
@@ -59,6 +62,9 @@ to use in connecting to the
5962
.IR postmaster
6063
process. The default is site-specific.
6164
.TP
65+
.BR "-D" " dbpath"
66+
Specifies the alternate database location for this database.
67+
.TP
6268
.BR "-h" " host"
6369
Specifies the hostname of the machine on which the
6470
.IR postmaster

0 commit comments

Comments
 (0)