~ubuntu-branches/ubuntu/oneiric/postgresql-9.1/oneiric-security

« back to all changes in this revision

Viewing changes to doc/src/sgml/man7/CREATE_DATABASE.7

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-02-05 18:13:52 UTC
  • mfrom: (1.1.10) (10.1.5 oneiric-proposed)
  • Revision ID: package-import@ubuntu.com-20130205181352-3kw4f94ilqklzm7c
Tags: 9.1.8-0ubuntu11.10
* New upstream security/bug fix release: (LP: #1116336)
  - Prevent execution of enum_recv from SQL
    The function was misdeclared, allowing a simple SQL command to crash the
    server.  In principle an attacker might be able to use it to examine the
    contents of server memory.  Our thanks to Sumit Soni (via Secunia SVCRP)
    for reporting this issue. (CVE-2013-0255)
  - See HISTORY/changelog.gz for the other bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
.\"     Title: CREATE DATABASE
3
3
.\"    Author: The PostgreSQL Global Development Group
4
4
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5
 
.\"      Date: 2012-08-14
6
 
.\"    Manual: PostgreSQL 9.1.5 Documentation
7
 
.\"    Source: PostgreSQL 9.1.5
 
5
.\"      Date: 2013-02-04
 
6
.\"    Manual: PostgreSQL 9.1.8 Documentation
 
7
.\"    Source: PostgreSQL 9.1.8
8
8
.\"  Language: English
9
9
.\"
10
 
.TH "CREATE DATABASE" "7" "2012-08-14" "PostgreSQL 9.1.5" "PostgreSQL 9.1.5 Documentation"
 
10
.TH "CREATE DATABASE" "7" "2013-02-04" "PostgreSQL 9.1.8" "PostgreSQL 9.1.8 Documentation"
11
11
.\" -----------------------------------------------------------------
12
12
.\" * Define some portability stuff
13
13
.\" -----------------------------------------------------------------
55
55
privilege\&. See
56
56
CREATE USER (\fBCREATE_USER\fR(7))\&.
57
57
.PP
58
 
Normally, the creator becomes the owner of the new database\&. Superusers can create databases owned by other users, by using the
59
 
OWNER
60
 
clause\&. They can even create databases owned by users with no special privileges\&. Non\-superusers with
61
 
CREATEDB
62
 
privilege can only create databases owned by themselves\&.
63
 
.PP
64
58
By default, the new database will be created by cloning the standard system database
65
59
template1\&. A different template can be specified by writing
66
60
TEMPLATE \fIname\fR\&. In particular, by writing
74
68
The name of a database to create\&.
75
69
.RE
76
70
.PP
77
 
\fIuse_name\fR
 
71
\fIuser_name\fR
78
72
.RS 4
79
 
The name of the database user who will own the new database, or
 
73
The role name of the user who will own the new database, or
80
74
DEFAULT
81
 
to use the default (namely, the user executing the command)\&.
 
75
to use the default (namely, the user executing the command)\&. To create a database owned by another role, you must be a direct or indirect member of that role, or be a superuser\&.
82
76
.RE
83
77
.PP
84
78
\fItemplate\fR