Commit eb54314b authored by Bruce Momjian's avatar Bruce Momjian

Re-add equals documentation with CREATE DATABASE.

parent 95ec9ff2
TODO list for PostgreSQL TODO list for PostgreSQL
======================== ========================
Last updated: Sat Feb 23 16:51:48 EST 2002 Last updated: Sun Feb 24 22:35:16 EST 2002
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us) Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
...@@ -55,9 +55,9 @@ ADMIN ...@@ -55,9 +55,9 @@ ADMIN
----- -----
* Incremental backups * Incremental backups
* Make it easier to create a database owned by someone who can't createdb, * -Make it easier to create a database owned by someone who can't createdb,
perhaps CREATE DATABASE dbname WITH OWNER = "user" (Gavin) perhaps CREATE DATABASE dbname WITH OWNER = "user" (Gavin)
* Make equals sign optional in CREATE DATABASE WITH param = 'val' * -Make equals sign optional in CREATE DATABASE WITH param = 'val'
* Remove unreferenced table files and temp tables during database vacuum * Remove unreferenced table files and temp tables during database vacuum
or postmaster startup (Bruce) or postmaster startup (Bruce)
* Add table name mapping for numeric file names (Bruce) * Add table name mapping for numeric file names (Bruce)
......
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_database.sgml,v 1.25 2002/02/25 02:53:46 momjian Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/ref/create_database.sgml,v 1.26 2002/02/25 03:37:13 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">
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.280 2002/02/25 02:53:46 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.281 2002/02/25 03:37:14 momjian Exp $
* *
* HISTORY * HISTORY
* AUTHOR DATE MAJOR EVENT * AUTHOR DATE MAJOR EVENT
...@@ -3156,8 +3156,8 @@ createdb_opt_item: LOCATION opt_equal Sconst ...@@ -3156,8 +3156,8 @@ createdb_opt_item: LOCATION opt_equal Sconst
; ;
/* /*
* Optional equals is here only for backward compatibility. * Though the equals sign doesn't match other WITH options, pg_dump uses
* Should be removed someday. bjm 2002-02-24 * equals for backward compability, and it doesn't seem worth remove it.
*/ */
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