Re: Renaming some binaries

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, Euler Taveira <euler(at)timbira(dot)com(dot)br>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, pgsql-hackers-owner(at)postgresql(dot)org
Subject: Re: Renaming some binaries
Date: 2016-08-26 20:09:59
Message-ID: a9214ed5ec4fc00da61d1d0a30879aa3@thebighonker.lerctr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2016-08-26 15:03, Andres Freund wrote:
> On 2016-08-26 22:01:58 +0200, Simon Riggs wrote:
>> On 26 August 2016 at 18:26, Euler Taveira <euler(at)timbira(dot)com(dot)br>
>> wrote:
>>
>> > I'm bringing this $subject into discussion again. Historically, we are
>> > carrying binary names that have been confused newbies. createuser is the
>> > worst name so for. Also, names like createdb, initdb, reindexdb, and
>> > droplang does not suggest what product it is referring to. Adding a
>> > prefix (pg_, pg, ...) would 'make things clear'. If we have a consensus
>> > about this change, I suggest renaming the following binaries:
>> >
>> > clusterdb
>> > createdb
>> > createlang
>> > createuser
>> > dropdb
>> > droplang
>> > dropuser
>> > initdb
>> > oid2name
>> > reindexdb
>> > vacuumdb
>> > vacuumlo
>>
>> Why not just remove them all and change the docs to suggest using
>>
>> psql -c "CREATE DATABASE foo"
>> etc
>>
>> Less code, no confusion because we have just one client tool - psql.
>
> Several of them have the ability to connect to several databases, some
> even do that in parallel.

vacuumdb being one that I've needed recently to do a number of DB's in a
row.

--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: ler(at)lerctr(dot)org
US Mail: 17716 Limpia Crk, Round Rock, TX 78664-7281

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2016-08-26 20:18:22 Re: Renaming of pg_xlog and pg_clog
Previous Message Andres Freund 2016-08-26 20:03:41 Re: Renaming some binaries