Example error in createdb doc - Mailing list pgsql-docs

From Jason O'Donnell
Subject Example error in createdb doc
Date
Msg-id CAOYeSOdUxLryVKsNkKs3tXCGSdQi2H7Wr6kMCWLpPnhu-JO_qQ@mail.gmail.com
Whole thread Raw
Responses Re: Example error in createdb doc  (Bruce Momjian <bruce@momjian.us>)
List pgsql-docs
Hello,

I believe I've found an incorrect example in the createdb documentation:
https://www.postgresql.org/docs/current/static/app-createdb.html

The example given for createdb fails because template0 is not provided:

[~] createdb -p 5000 -h eden -E LATIN1 -e demo
CREATE DATABASE demo ENCODING 'LATIN1';
createdb: database creation failed: ERROR:  new encoding (LATIN1) is incompatible with the encoding of the template database (SQL_ASCII)
HINT:  Use the same encoding as in the template database, or use template0 as template.

I've attached a patch that addresses the issue.

Thanks!

--
Jason O'Donnell
Crunchy Data Solutions
Attachment

pgsql-docs by date:

Previous
From: Andrew Kerber
Date:
Subject: Re: 18.4.4. Linux huge pages
Next
From: moj@dshare.de
Date:
Subject: Missing tablespace_option | effective_io_concurrency