Re: initdb createuser commands

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Samuel Williams <space(dot)ship(dot)traveller(at)gmail(dot)com>, John R Pierce <pierce(at)hogranch(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: initdb createuser commands
Date: 2016-10-29 00:21:40
Message-ID: 6e73c44b-8ad1-f543-5dba-2cdb618a96d1@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 10/28/2016 04:55 PM, Samuel Williams wrote:
>> as these commands have been around for like 20 years, its kinda late to change them
>
> I understand your position.
>
> For new documentation, it should be better to say `pg_ctl init` rather
> than `initdb`. I think that would guide users in the right direction
> from the start. Even if maintaining the old commands, they could print
> out to stderr "This command is deprecated and now wraps `pg_ctl init`.
> Please use that command in the future".

It does:

https://www.postgresql.org/docs/9.5/static/creating-cluster.html

>
>> initdb is now accessible from pg_ctl:
>
> Thanks Adrian, that's really helpful and exactly what I was looking for.
>
> Should we update the Arch Linux documentation to prefer these
> commands? What is the recommendation here?

Given that pg_ctl initdb is in all current community supported versions
I would say that is alright. Probably better to just point folks at the
Postgres docs, a great deal of effort is done to keep them current. Also
you have the version selection at the top of each page that allows you
to walk back and forth through time.

>
> On 29 October 2016 at 12:39, John R Pierce <pierce(at)hogranch(dot)com> wrote:
>> On 10/28/2016 4:31 PM, Samuel Williams wrote:
>>>
>>> Just wondering as the naming of these commands seems overly generic
>>> and for a new user it's hard to know what commands are available since
>>> there is no common prefix (e.g. pg_<tab>) for these commands.
>>
>>
>> as these commands have been around for like 20 years, its kinda late to
>> change them
>>
>>
>> --
>> john r pierce, recycling bits in santa cruz
>>
>>
>>
>> --
>> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-general
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2016-10-29 00:29:10 Re: SELECT DISTINCT ON removes results
Previous Message Samuel Williams 2016-10-28 23:55:39 Re: initdb createuser commands