Re: script binaries renaming

From: Michael Glaesemann <grzm(at)seespotcode(dot)net>
To: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
Cc: Dave Page <dpage(at)postgresql(dot)org>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-patches(at)postgresql(dot)org, Zdenek Kotala <zdenek(dot)kotala(at)sun(dot)com>
Subject: Re: script binaries renaming
Date: 2007-07-06 17:24:58
Message-ID: 2D24722C-AA10-48FE-9F70-E58154072CA7@seespotcode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches


On Jul 6, 2007, at 11:28 , Joshua D. Drake wrote:

> Why should they be name spaced? I see zero reason why that should
> be the case...
>
> apache_httpd?
> gnu_ls?

Personally, I think that the Apache daemon *should* be named apached
or something along those lines.

Compare with postgres, pg_ctl, pg_dump, or pg_config. Albeit postgres
is not consistent, they're all easily identifiable with PostgreSQL.
In my opinion, postgres, pg_ctl, pg_ccmp, and pg_config are better
names than, say, dbmsd, dbms_ctl, db_dump, and db_config. Also, we
recently deprecated the use of postmaster (easily confused with mail
systems) in favor of postgres. Looking at the binaries that are
installed for 8.2:

clusterdb
createdb
createlang
createuser
dropdb
droplang
dropuser
ecpg
initdb
ipcclean
pg_config
pg_controldata
pg_ctl
pg_dump
pg_dumpall
pg_resetxlog
pg_restore
postgres
postmaster -> postgres
psql
reindexdb
vacuumdb

If these are all dumped into /usr/local/bin (as they sometimes are),
many of them are not readily identifiable with PostgreSQL. Shouldn't
they be? Compare with Subversion:
svn
svnadmin
svndumpfileter
svnlook
svnserver
svnsync
svnversion

I find these names much more consistent.

Michael Glaesemann
grzm seespotcode net

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-07-06 17:27:13 Re: BUG #3431: age() gets the days wrong
Previous Message Jan Wieck 2007-07-06 17:24:19 Re: usleep feature for pgbench

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2007-07-06 17:27:13 Re: BUG #3431: age() gets the days wrong
Previous Message Magnus Hagander 2007-07-06 16:42:59 Re: Compile error with MSVC