From: | "Jason O'Donnell" <odonnelljp01(at)gmail(dot)com> |
---|---|
To: | pgsql-docs(at)postgresql(dot)org |
Subject: | Example error in createdb doc |
Date: | 2016-10-28 01:01:59 |
Message-ID: | CAOYeSOdUxLryVKsNkKs3tXCGSdQi2H7Wr6kMCWLpPnhu-JO_qQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 | Content-Type | Size |
---|---|---|
createdb_doc_v1.patch | application/octet-stream | 715 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | moj | 2016-10-31 09:41:24 | Missing tablespace_option | effective_io_concurrency |
Previous Message | Andrew Kerber | 2016-10-22 16:32:18 | Re: 18.4.4. Linux huge pages |