Re: initdb createuser commands - Mailing list pgsql-general

From Adrian Klaver
Subject Re: initdb createuser commands
Date
Msg-id 060e5efa-2bb0-a728-81b3-4c1193dc2f5e@aklaver.com
Whole thread Raw
In response to Re: initdb createuser commands  (Samuel Williams <space.ship.traveller@gmail.com>)
List 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 by date:

Previous
From: Samuel Williams
Date:
Subject: Re: initdb createuser commands
Next
From: John R Pierce
Date:
Subject: Re: initdb createuser commands