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

Commitc709b11

Browse files
committed
doc: improve createdb example
The previous example could error out due to encoding mismatches; use-T/template instead.Reported-by: Jason O'Donnell
1 parentaa740b5 commitc709b11

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,11 @@ PostgreSQL documentation
363363
<para>
364364
To create the database <literal>demo</literal> using the
365365
server on host <literal>eden</>, port 5000, using the
366-
<literal>LATIN1</literal>encoding scheme with a look at the
367-
underlying command:
366+
<literal>template0</literal>template database, here is the
367+
command-line command and theunderlying SQL command:
368368
<screen>
369-
<prompt>$ </prompt><userinput>createdb -p 5000 -h eden -E LATIN1 -e demo</userinput>
370-
<computeroutput>CREATE DATABASE demoENCODING 'LATIN1';</computeroutput>
369+
<prompt>$ </prompt><userinput>createdb -p 5000 -h eden -T template0 -e demo</userinput>
370+
<computeroutput>CREATE DATABASE demoTEMPLATE template0;</computeroutput>
371371
</screen></para>
372372
</refsect1>
373373

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp