Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit95ec9ff

Browse files
committed
Remove documentation of equals in CREATE DATABASE. Mention removal of
equals hack for the future.
1 parentc3fe58e commit95ec9ff

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

‎doc/src/sgml/ref/create_database.sgml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_database.sgml,v 1.24 2002/02/24 20:20:18 tgl Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_database.sgml,v 1.25 2002/02/25 02:53:46 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -24,10 +24,10 @@ PostgreSQL documentation
2424
</refsynopsisdivinfo>
2525
<synopsis>
2626
CREATE DATABASE <replaceable class="PARAMETER">name</replaceable>
27-
[ WITH [ OWNER[ = ]<replaceable class="parameter">dbowner</replaceable> ]
28-
[ LOCATION[ = ]'<replaceable class="parameter">dbpath</replaceable>' ]
29-
[ TEMPLATE[ = ]<replaceable class="parameter">template</replaceable> ]
30-
[ ENCODING[ = ]<replaceable class="parameter">encoding</replaceable> ] ]
27+
[ WITH [ OWNER <replaceable class="parameter">dbowner</replaceable> ]
28+
[ LOCATION '<replaceable class="parameter">dbpath</replaceable>' ]
29+
[ TEMPLATE <replaceable class="parameter">template</replaceable> ]
30+
[ ENCODING <replaceable class="parameter">encoding</replaceable> ] ]
3131
</synopsis>
3232

3333
<refsect2 id="R2-SQL-CREATEDATABASE-1">
@@ -186,11 +186,10 @@ CREATE DATABASE <replaceable class="PARAMETER">name</replaceable>
186186

187187
<para>
188188
Normally, the creator becomes the owner of the new database.
189-
A different owner may be specified by using the <option>OWNER</>
190-
clause (but only superusers may create databases on behalf of other users).
191-
To create a database owned by oneself, either superuser privilege
192-
or CREATEDB privilege is required. A superuser may create a database
193-
for another user, even if that user has no special privileges himself.
189+
Superusers can create databases owned by other users using the
190+
<option>OWNER</> clause. They can even create databases owned by
191+
users with no special privileges. Non-superusers with CREATEDB
192+
privilege can only create databases owned by themselves.
194193
</para>
195194

196195
<para>

‎src/backend/parser/gram.y

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.279 2002/02/24 20:20:20 tgl Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.280 2002/02/25 02:53:46 momjian Exp $
1515
*
1616
* HISTORY
1717
* AUTHORDATEMAJOR EVENT
@@ -3155,6 +3155,10 @@ createdb_opt_item: LOCATION opt_equal Sconst
31553155
}
31563156
;
31573157

3158+
/*
3159+
*Optional equals is here only for backward compatibility.
3160+
*Should be removed someday. bjm 2002-02-24
3161+
*/
31583162
opt_equal:'='{$$ =TRUE; }
31593163
|/*EMPTY*/{$$ =FALSE; }
31603164
;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp