Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8ddb046

Browse files
committed
Update examples of create/drop scripts.
1 parent4c2d3cc commit8ddb046

File tree

5 files changed

+9
-24
lines changed

5 files changed

+9
-24
lines changed

‎doc/src/sgml/ref/createdb.sgml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/createdb.sgml,v 1.45 2007/06/04 10:02:40 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/createdb.sgml,v 1.46 2007/06/21 10:43:09 petere Exp $
33
PostgreSQL documentation
44
-->
55

@@ -265,10 +265,7 @@ PostgreSQL documentation
265265
database server:
266266
<screen>
267267
<prompt>$ </prompt><userinput>createdb demo</userinput>
268-
<computeroutput>CREATE DATABASE</computeroutput>
269268
</screen>
270-
The response is the same as you would have gotten from running the
271-
<command>CREATE DATABASE</command> <acronym>SQL</acronym> command.
272269
</para>
273270

274271
<para>
@@ -278,8 +275,7 @@ PostgreSQL documentation
278275
underlying command:
279276
<screen>
280277
<prompt>$ </prompt><userinput>createdb -p 5000 -h eden -E LATIN1 -e demo</userinput>
281-
<computeroutput>CREATE DATABASE "demo" WITH ENCODING = 'LATIN1'</computeroutput>
282-
<computeroutput>CREATE DATABASE</computeroutput>
278+
<computeroutput>CREATE DATABASE demo ENCODING 'LATIN1';</computeroutput>
283279
</screen>
284280
</para>
285281
</refsect1>

‎doc/src/sgml/ref/createuser.sgml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/createuser.sgml,v 1.48 2007/06/04 10:02:40 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/createuser.sgml,v 1.49 2007/06/21 10:43:09 petere Exp $
33
PostgreSQL documentation
44
-->
55

@@ -358,7 +358,6 @@ PostgreSQL documentation
358358
<computeroutput>Shall the new role be a superuser? (y/n) </computeroutput><userinput>n</userinput>
359359
<computeroutput>Shall the new role be allowed to create databases? (y/n) </computeroutput><userinput>n</userinput>
360360
<computeroutput>Shall the new role be allowed to create more new roles? (y/n) </computeroutput><userinput>n</userinput>
361-
<computeroutput>CREATE USER</computeroutput>
362361
</screen>
363362
</para>
364363

@@ -369,7 +368,6 @@ PostgreSQL documentation
369368
<screen>
370369
<prompt>$ </prompt><userinput>createuser -h eden -p 5000 -S -D -R -e joe</userinput>
371370
<computeroutput>CREATE ROLE joe NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;</computeroutput>
372-
<computeroutput>CREATE ROLE</computeroutput>
373371
</screen>
374372
</para>
375373

@@ -381,7 +379,6 @@ PostgreSQL documentation
381379
<computeroutput>Enter password for new role: </computeroutput><userinput>xyzzy</userinput>
382380
<computeroutput>Enter it again: </computeroutput><userinput>xyzzy</userinput>
383381
<computeroutput>CREATE ROLE joe PASSWORD 'xyzzy' SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;</computeroutput>
384-
<computeroutput>CREATE ROLE</computeroutput>
385382
</screen>
386383
In the above example, the new password isn't actually echoed when typed,
387384
but we show what was typed for clarity. However the password

‎doc/src/sgml/ref/dropdb.sgml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/dropdb.sgml,v 1.32 2007/06/04 10:02:40 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/dropdb.sgml,v 1.33 2007/06/21 10:43:09 petere Exp $
33
PostgreSQL documentation
44
-->
55

@@ -192,7 +192,6 @@ PostgreSQL documentation
192192
database server:
193193
<screen>
194194
<prompt>$ </prompt><userinput>dropdb demo</userinput>
195-
<computeroutput>DROP DATABASE</computeroutput>
196195
</screen>
197196
</para>
198197

@@ -204,8 +203,7 @@ PostgreSQL documentation
204203
<prompt>$ </prompt><userinput>dropdb -p 5000 -h eden -i -e demo</userinput>
205204
<computeroutput>Database "demo" will be permanently deleted.
206205
Are you sure? (y/n) </computeroutput><userinput>y</userinput>
207-
<computeroutput>DROP DATABASE "demo"
208-
DROP DATABASE</computeroutput>
206+
<computeroutput>DROP DATABASE demo;</computeroutput>
209207
</screen>
210208
</para>
211209
</refsect1>

‎doc/src/sgml/ref/dropuser.sgml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/dropuser.sgml,v 1.37 2007/06/04 10:02:40 petere Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/dropuser.sgml,v 1.38 2007/06/21 10:43:09 petere Exp $
33
PostgreSQL documentation
44
-->
55

@@ -195,7 +195,6 @@ PostgreSQL documentation
195195
server:
196196
<screen>
197197
<prompt>$ </prompt><userinput>dropuser joe</userinput>
198-
<computeroutput>DROP ROLE</computeroutput>
199198
</screen>
200199
</para>
201200

@@ -207,8 +206,7 @@ PostgreSQL documentation
207206
<prompt>$ </prompt><userinput>dropuser -p 5000 -h eden -i -e joe</userinput>
208207
<computeroutput>Role "joe" will be permanently removed.
209208
Are you sure? (y/n) </computeroutput><userinput>y</userinput>
210-
<computeroutput>DROP ROLE "joe"
211-
DROP ROLE</computeroutput>
209+
<computeroutput>DROP ROLE joe;</computeroutput>
212210
</screen>
213211
</para>
214212
</refsect1>

‎doc/src/sgml/start.sgml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/start.sgml,v 1.44 2007/01/31 20:56:19 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/start.sgml,v 1.45 2007/06/21 10:43:09 petere Exp $ -->
22

33
<chapter id="tutorial-start">
44
<title>Getting Started</title>
@@ -154,11 +154,7 @@
154154
<screen>
155155
<prompt>$</prompt> <userinput>createdb mydb</userinput>
156156
</screen>
157-
This should produce as response:
158-
<screen>
159-
CREATE DATABASE
160-
</screen>
161-
If so, this step was successful and you can skip over the
157+
If this produces no response then this step was successful and you can skip over the
162158
remainder of this section.
163159
</para>
164160

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp