Commit 95ec9ff2 authored by Bruce Momjian's avatar Bruce Momjian

Remove documentation of equals in CREATE DATABASE. Mention removal of

equals hack for the future.
parent c3fe58ed
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_database.sgml,v 1.24 2002/02/24 20:20:18 tgl Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/ref/create_database.sgml,v 1.25 2002/02/25 02:53:46 momjian Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -24,10 +24,10 @@ PostgreSQL documentation ...@@ -24,10 +24,10 @@ PostgreSQL documentation
</refsynopsisdivinfo> </refsynopsisdivinfo>
<synopsis> <synopsis>
CREATE DATABASE <replaceable class="PARAMETER">name</replaceable> CREATE DATABASE <replaceable class="PARAMETER">name</replaceable>
[ WITH [ OWNER [ = ] <replaceable class="parameter">dbowner</replaceable> ] [ WITH [ OWNER <replaceable class="parameter">dbowner</replaceable> ]
[ LOCATION [ = ] '<replaceable class="parameter">dbpath</replaceable>' ] [ LOCATION '<replaceable class="parameter">dbpath</replaceable>' ]
[ TEMPLATE [ = ] <replaceable class="parameter">template</replaceable> ] [ TEMPLATE <replaceable class="parameter">template</replaceable> ]
[ ENCODING [ = ] <replaceable class="parameter">encoding</replaceable> ] ] [ ENCODING <replaceable class="parameter">encoding</replaceable> ] ]
</synopsis> </synopsis>
<refsect2 id="R2-SQL-CREATEDATABASE-1"> <refsect2 id="R2-SQL-CREATEDATABASE-1">
...@@ -186,11 +186,10 @@ CREATE DATABASE <replaceable class="PARAMETER">name</replaceable> ...@@ -186,11 +186,10 @@ CREATE DATABASE <replaceable class="PARAMETER">name</replaceable>
<para> <para>
Normally, the creator becomes the owner of the new database. Normally, the creator becomes the owner of the new database.
A different owner may be specified by using the <option>OWNER</> Superusers can create databases owned by other users using the
clause (but only superusers may create databases on behalf of other users). <option>OWNER</> clause. They can even create databases owned by
To create a database owned by oneself, either superuser privilege users with no special privileges. Non-superusers with CREATEDB
or CREATEDB privilege is required. A superuser may create a database privilege can only create databases owned by themselves.
for another user, even if that user has no special privileges himself.
</para> </para>
<para> <para>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.279 2002/02/24 20:20:20 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.280 2002/02/25 02:53:46 momjian Exp $
* *
* HISTORY * HISTORY
* AUTHOR DATE MAJOR EVENT * AUTHOR DATE MAJOR EVENT
...@@ -3155,6 +3155,10 @@ createdb_opt_item: LOCATION opt_equal Sconst ...@@ -3155,6 +3155,10 @@ createdb_opt_item: LOCATION opt_equal Sconst
} }
; ;
/*
* Optional equals is here only for backward compatibility.
* Should be removed someday. bjm 2002-02-24
*/
opt_equal: '=' { $$ = TRUE; } opt_equal: '=' { $$ = TRUE; }
| /*EMPTY*/ { $$ = FALSE; } | /*EMPTY*/ { $$ = FALSE; }
; ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment