SQL Reference Contents
create database - create a new database
create database
dbname [with location = ' dbpath' ]
create database creates
a new Postgres database. The creator becomes the administrator of the
new database. An alternate location can be specified as either an environment
variable known to the backend server (e.g. 'PGDATA2') or as an absolute path
name (e.g. '/home/postgres/data'). In either case, the location must be pre-configured
by initarea
createdb(1)
, drop database(l)
, destroydb(1)
, initarea(1)
,
initdb(1)
.
Table of Contents