Re: initdb createuser commands

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: initdb createuser commands
Дата
Msg-id 060e5efa-2bb0-a728-81b3-4c1193dc2f5e@aklaver.com
обсуждение исходный текст
Ответ на Re: initdb createuser commands  (Samuel Williams <space.ship.traveller@gmail.com>)
Список pgsql-general
On 10/29/2016 03:02 PM, Samuel Williams wrote:
> FYI, https://wiki.archlinux.org/index.php/PostgreSQL mentions initdb,
> createuser, createdb and several others. I think my suggestion is
> still relevant and something that would improve the system for new
> users :)

Seems to me the solution would be to change the above docs to reflect a
simpler procedure. In other words:

[postgres]$ initdb --locale $LANG -E UTF8 -D '/var/lib/postgres/data'

becomes

[postgres]$ pg_ctl initdb -D '/var/lib/postgres/data' -o '--locale $LANG
-E UTF8 '

Remove 'Create your first database/user' and incorporate that into
'Access the database shell' where the database you connect to is
postgres instead of myDatabaseName and you create the user and database
using SQL commands.







--
Adrian Klaver
adrian.klaver@aklaver.com


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

Предыдущее
От: Samuel Williams
Дата:
Сообщение: Re: initdb createuser commands
Следующее
От: John R Pierce
Дата:
Сообщение: Re: initdb createuser commands