Remove documentation of equals in CREATE DATABASE. Mention removal of
authorBruce Momjian
Mon, 25 Feb 2002 02:53:46 +0000 (02:53 +0000)
committerBruce Momjian
Mon, 25 Feb 2002 02:53:46 +0000 (02:53 +0000)
equals hack for the future.

doc/src/sgml/ref/create_database.sgml
src/backend/parser/gram.y

index 2c87d215914b1497833918ebb7e33f0f9098a189..0ee73e3726514a5009ceb6ccc220a520a0a55d14 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 ] ]
   
 
   
@@ -186,11 +186,10 @@ CREATE DATABASE name
 
   
    Normally, the creator becomes the owner of the new database.
-   A different owner may be specified by using the 
-   clause (but only superusers may create databases on behalf of other users).
-   To create a database owned by oneself, either superuser privilege
-   or CREATEDB privilege is required.  A superuser may create a database
-   for another user, even if that user has no special privileges himself.
+   Superusers can create databases owned by other users using the
+   
+   users with no special privileges. Non-superusers with CREATEDB
+   privilege can only create databases owned by themselves.
   
 
   
index 37d9364eae8154dfa663bf576d07d7e828a71794..66c11828b6598e8c2a37fd3863e3047245b2de26 100644 (file)
@@ -11,7 +11,7 @@
  *
  *
  * 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
  *   AUTHOR            DATE            MAJOR EVENT
@@ -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; }
        | /*EMPTY*/                         { $$ = FALSE; }
        ;