Example error in createdb doc

Поиск
Список
Период
Сортировка
От Jason O'Donnell
Тема Example error in createdb doc
Дата
Msg-id CAOYeSOdUxLryVKsNkKs3tXCGSdQi2H7Wr6kMCWLpPnhu-JO_qQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Example error in createdb doc  (Bruce Momjian <bruce@momjian.us>)
Список 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
Вложения

В списке pgsql-docs по дате отправления:

Предыдущее
От: Andrew Kerber
Дата:
Сообщение: Re: 18.4.4. Linux huge pages
Следующее
От: moj@dshare.de
Дата:
Сообщение: Missing tablespace_option | effective_io_concurrency