dbTalk Databases Forums  

[NOVICE] On naming of executables

mailing.database.pgsql-novice mailing.database.pgsql-novice


Discuss [NOVICE] On naming of executables in the mailing.database.pgsql-novice forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mark Davidson
 
Posts: n/a

Default [NOVICE] On naming of executables - 09-06-2012 , 12:57 PM






As a new user of Postgres I'm wondering about the naming of certain
executables (createdb, dropuser, etc). These are fairly ambiguous
names. They could just as well apply to the OS or an other DBMS. Why
not prefix them? (e.g. `pg_createdb` such as several other scripts).

I suppose this is a case of bikeshedding and I realize I am free to
rename them; I'm just curious as to why this is.


--
Sent via pgsql-novice mailing list (pgsql-novice (AT) postgresql (DOT) org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice

Reply With Quote
  #2  
Old   
Kevin Grittner
 
Posts: n/a

Default Re: [NOVICE] On naming of executables - 09-06-2012 , 02:56 PM






Mark Davidson <chemosh9 (AT) gmail (DOT) com> wrote:

Quote:
As a new user of Postgres I'm wondering about the naming of
certain executables (createdb, dropuser, etc). These are fairly
ambiguous names. They could just as well apply to the OS or an
other DBMS. Why not prefix them? (e.g. `pg_createdb` such as
several other scripts).

I'm just curious as to why this is.
I checked the earliest tag (which is over 16 years old) in our git
repository, and those executable names were already in use by that
time. (They may go much earlier, but I'm not sure how to check
that.) I think that in the absence of any name conflicts which are
causing anyone pain, and in the face of the certainty that changing
them would break many existing production scripts, nobody has been
very inclined to spend their limited time making the change.

In other words: a historical artifact with a fair amount of inertia.

-Kevin


--
Sent via pgsql-novice mailing list (pgsql-novice (AT) postgresql (DOT) org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice

Reply With Quote
  #3  
Old   
Tom Lane
 
Posts: n/a

Default Re: [NOVICE] On naming of executables - 09-06-2012 , 03:19 PM



Mark Davidson <chemosh9 (AT) gmail (DOT) com> writes:
Quote:
As a new user of Postgres I'm wondering about the naming of certain
executables (createdb, dropuser, etc). These are fairly ambiguous
names. They could just as well apply to the OS or an other DBMS. Why
not prefix them? (e.g. `pg_createdb` such as several other scripts).
Yeah, if people had thought ahead fifteen years ago they would surely
have been named like that.

At this point, though, it seems like the costs of changing would
outweigh the benefits. (I recall at least one fairly serious proposal
to rename them, but it didn't pass, and now there are even more years
of precedent there.)

regards, tom lane


--
Sent via pgsql-novice mailing list (pgsql-novice (AT) postgresql (DOT) org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.