Commit 8ddb046b authored by Peter Eisentraut's avatar Peter Eisentraut

Update examples of create/drop scripts.

parent 4c2d3ccf
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/createdb.sgml,v 1.45 2007/06/04 10:02:40 petere Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/createdb.sgml,v 1.46 2007/06/21 10:43:09 petere Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -265,10 +265,7 @@ PostgreSQL documentation ...@@ -265,10 +265,7 @@ PostgreSQL documentation
database server: database server:
<screen> <screen>
<prompt>$ </prompt><userinput>createdb demo</userinput> <prompt>$ </prompt><userinput>createdb demo</userinput>
<computeroutput>CREATE DATABASE</computeroutput>
</screen> </screen>
The response is the same as you would have gotten from running the
<command>CREATE DATABASE</command> <acronym>SQL</acronym> command.
</para> </para>
<para> <para>
...@@ -278,8 +275,7 @@ PostgreSQL documentation ...@@ -278,8 +275,7 @@ PostgreSQL documentation
underlying command: underlying command:
<screen> <screen>
<prompt>$ </prompt><userinput>createdb -p 5000 -h eden -E LATIN1 -e demo</userinput> <prompt>$ </prompt><userinput>createdb -p 5000 -h eden -E LATIN1 -e demo</userinput>
<computeroutput>CREATE DATABASE "demo" WITH ENCODING = 'LATIN1'</computeroutput> <computeroutput>CREATE DATABASE demo ENCODING 'LATIN1';</computeroutput>
<computeroutput>CREATE DATABASE</computeroutput>
</screen> </screen>
</para> </para>
</refsect1> </refsect1>
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/createuser.sgml,v 1.48 2007/06/04 10:02:40 petere Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/createuser.sgml,v 1.49 2007/06/21 10:43:09 petere Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -358,7 +358,6 @@ PostgreSQL documentation ...@@ -358,7 +358,6 @@ PostgreSQL documentation
<computeroutput>Shall the new role be a superuser? (y/n) </computeroutput><userinput>n</userinput> <computeroutput>Shall the new role be a superuser? (y/n) </computeroutput><userinput>n</userinput>
<computeroutput>Shall the new role be allowed to create databases? (y/n) </computeroutput><userinput>n</userinput> <computeroutput>Shall the new role be allowed to create databases? (y/n) </computeroutput><userinput>n</userinput>
<computeroutput>Shall the new role be allowed to create more new roles? (y/n) </computeroutput><userinput>n</userinput> <computeroutput>Shall the new role be allowed to create more new roles? (y/n) </computeroutput><userinput>n</userinput>
<computeroutput>CREATE USER</computeroutput>
</screen> </screen>
</para> </para>
...@@ -369,7 +368,6 @@ PostgreSQL documentation ...@@ -369,7 +368,6 @@ PostgreSQL documentation
<screen> <screen>
<prompt>$ </prompt><userinput>createuser -h eden -p 5000 -S -D -R -e joe</userinput> <prompt>$ </prompt><userinput>createuser -h eden -p 5000 -S -D -R -e joe</userinput>
<computeroutput>CREATE ROLE joe NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;</computeroutput> <computeroutput>CREATE ROLE joe NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;</computeroutput>
<computeroutput>CREATE ROLE</computeroutput>
</screen> </screen>
</para> </para>
...@@ -381,7 +379,6 @@ PostgreSQL documentation ...@@ -381,7 +379,6 @@ PostgreSQL documentation
<computeroutput>Enter password for new role: </computeroutput><userinput>xyzzy</userinput> <computeroutput>Enter password for new role: </computeroutput><userinput>xyzzy</userinput>
<computeroutput>Enter it again: </computeroutput><userinput>xyzzy</userinput> <computeroutput>Enter it again: </computeroutput><userinput>xyzzy</userinput>
<computeroutput>CREATE ROLE joe PASSWORD 'xyzzy' SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;</computeroutput> <computeroutput>CREATE ROLE joe PASSWORD 'xyzzy' SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;</computeroutput>
<computeroutput>CREATE ROLE</computeroutput>
</screen> </screen>
In the above example, the new password isn't actually echoed when typed, In the above example, the new password isn't actually echoed when typed,
but we show what was typed for clarity. However the password but we show what was typed for clarity. However the password
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/dropdb.sgml,v 1.32 2007/06/04 10:02:40 petere Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/dropdb.sgml,v 1.33 2007/06/21 10:43:09 petere Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -192,7 +192,6 @@ PostgreSQL documentation ...@@ -192,7 +192,6 @@ PostgreSQL documentation
database server: database server:
<screen> <screen>
<prompt>$ </prompt><userinput>dropdb demo</userinput> <prompt>$ </prompt><userinput>dropdb demo</userinput>
<computeroutput>DROP DATABASE</computeroutput>
</screen> </screen>
</para> </para>
...@@ -204,8 +203,7 @@ PostgreSQL documentation ...@@ -204,8 +203,7 @@ PostgreSQL documentation
<prompt>$ </prompt><userinput>dropdb -p 5000 -h eden -i -e demo</userinput> <prompt>$ </prompt><userinput>dropdb -p 5000 -h eden -i -e demo</userinput>
<computeroutput>Database "demo" will be permanently deleted. <computeroutput>Database "demo" will be permanently deleted.
Are you sure? (y/n) </computeroutput><userinput>y</userinput> Are you sure? (y/n) </computeroutput><userinput>y</userinput>
<computeroutput>DROP DATABASE "demo" <computeroutput>DROP DATABASE demo;</computeroutput>
DROP DATABASE</computeroutput>
</screen> </screen>
</para> </para>
</refsect1> </refsect1>
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/dropuser.sgml,v 1.37 2007/06/04 10:02:40 petere Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/dropuser.sgml,v 1.38 2007/06/21 10:43:09 petere Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -195,7 +195,6 @@ PostgreSQL documentation ...@@ -195,7 +195,6 @@ PostgreSQL documentation
server: server:
<screen> <screen>
<prompt>$ </prompt><userinput>dropuser joe</userinput> <prompt>$ </prompt><userinput>dropuser joe</userinput>
<computeroutput>DROP ROLE</computeroutput>
</screen> </screen>
</para> </para>
...@@ -207,8 +206,7 @@ PostgreSQL documentation ...@@ -207,8 +206,7 @@ PostgreSQL documentation
<prompt>$ </prompt><userinput>dropuser -p 5000 -h eden -i -e joe</userinput> <prompt>$ </prompt><userinput>dropuser -p 5000 -h eden -i -e joe</userinput>
<computeroutput>Role "joe" will be permanently removed. <computeroutput>Role "joe" will be permanently removed.
Are you sure? (y/n) </computeroutput><userinput>y</userinput> Are you sure? (y/n) </computeroutput><userinput>y</userinput>
<computeroutput>DROP ROLE "joe" <computeroutput>DROP ROLE joe;</computeroutput>
DROP ROLE</computeroutput>
</screen> </screen>
</para> </para>
</refsect1> </refsect1>
......
<!-- $PostgreSQL: pgsql/doc/src/sgml/start.sgml,v 1.44 2007/01/31 20:56:19 momjian Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/start.sgml,v 1.45 2007/06/21 10:43:09 petere Exp $ -->
<chapter id="tutorial-start"> <chapter id="tutorial-start">
<title>Getting Started</title> <title>Getting Started</title>
...@@ -154,11 +154,7 @@ ...@@ -154,11 +154,7 @@
<screen> <screen>
<prompt>$</prompt> <userinput>createdb mydb</userinput> <prompt>$</prompt> <userinput>createdb mydb</userinput>
</screen> </screen>
This should produce as response: If this produces no response then this step was successful and you can skip over the
<screen>
CREATE DATABASE
</screen>
If so, this step was successful and you can skip over the
remainder of this section. remainder of this section.
</para> </para>
......
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