Re-add equals documentation with CREATE DATABASE.
authorBruce Momjian
Mon, 25 Feb 2002 03:37:14 +0000 (03:37 +0000)
committerBruce Momjian
Mon, 25 Feb 2002 03:37:14 +0000 (03:37 +0000)
doc/TODO
doc/src/sgml/ref/create_database.sgml
src/backend/parser/gram.y

index c45e7304dd8b3d56d12eeb6e76df83e919e09bd9..894c29f5b34a0c396817c7c1d461bda9410764ad 100644 (file)
--- a/doc/TODO
+++ b/doc/TODO
@@ -1,6 +1,6 @@
 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 ([email protected])
 
@@ -55,9 +55,9 @@ ADMIN
 -----
 
 * 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)
-* 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
   or postmaster startup (Bruce)
 * Add table name mapping for numeric file names (Bruce)
index 0ee73e3726514a5009ceb6ccc220a520a0a55d14..8d69d73dd4796504a8e41f2e8d10e08f4567732c 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -24,10 +24,10 @@ PostgreSQL documentation
   
   
 CREATE DATABASE name
-    [ WITH [ OWNER dbowner ]
-           [ LOCATION 'dbpath' ]
-           [ TEMPLATE template ]
-           [ ENCODING encoding ] ]
+    [ WITH [ OWNER [=] dbowner ]
+           [ LOCATION [=] 'dbpath' ]
+           [ TEMPLATE [=] template ]
+           [ ENCODING [=] encoding ] ]
   
 
   
index 66c11828b6598e8c2a37fd3863e3047245b2de26..f522769704c023c97abdb4153fe916cd4d54b77f 100644 (file)
@@ -11,7 +11,7 @@
  *
  *
  * 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
  *   AUTHOR            DATE            MAJOR EVENT
@@ -3156,8 +3156,8 @@ createdb_opt_item:  LOCATION opt_equal Sconst
        ;
 
 /*
- * Optional equals is here only for backward compatibility.
- * Should be removed someday.  bjm 2002-02-24
+ * Though the equals sign doesn't match other WITH options, pg_dump uses
+ *  equals for backward compability, and it doesn't seem worth remove it.
  */
 opt_equal: '='                             { $$ = TRUE; }
        | /*EMPTY*/                         { $$ = FALSE; }