pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: Thomas Lockhart <lockhart@alumni.caltech.edu>
Cc: Sergio A. Kessler <ser@perio.unlp.edu.ar>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: PostgreSQL-interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: Scripts (was Re: [HACKERS] Re: [INTERFACES] Next release is 7.0(?))
Date: Mon, 11 Oct 1999 18:24:17 -0400 (EDT)
Message-ID: <199910112224.SAA09670@candle.pha.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.10.9910112232220.832-100000@peter-e.yi.org>

> I think Thomas' primary problem was the underscore. (?)

OK.

> 
> I was going to say that I can take of that, since I was going to adjust
> the scripts to play well with the new psql anyway. (In particular, I just
> terminally removed the -a option, since it has gone unused for a while and
> might be a very popular option switch in the future. Switches are becoming
> scarce these days.)
> 
> I can offer the following plan (from my bin dir):
> 
> cleardbdir	--> (Remove. It's been a while.)

Good.

> createdb	--> pgcreatedb

Good.

> createlang	--> (In my excessively undereducated opinion, this should
>                      be removed. createdb and createuser I can see but
>                      this?)

Yes, remove.  What is that doing there.  Jan's plpgsql doesn't use it.  :-)

> createuser      --> pgcreateuser
> destroydb       --> pgdestroydb

Can I recommend pgdropdb?

> destroylang     --> (see above)
> destroyuser     --> pgdestroyuser

pgdropuser?

> ecpg
> initdb          --> pginitdb
> initlocation    --> pginitlocation
> ipcclean        --> pg_ipcclean
> (An underscore here to make it more complicated to type :)
> . . .

Not sure about that.

> vacuumdb	--> pgvacuumdb

OK.

> Alternatively, there could also be shorter commands, now that the
> association with the PostgreSQL installation is clearer:
> pgcrdb
> pgcruser
> pgdestdb
> pgdestuser
> pgvacuum

Too cryptic for me.

> This might remove the mnemonic association with the related SQL commands
> (which some might find desirable). Some might also go for a set like this:
> pguseradd
> pguserdel
> pgmkdb
> pgrmdb
> in association to *nix commands. (Some might find that a bad idea).

Doesn't grab me.

> 
> Furthermore I was thinking about a configure switch along the following
> lines:
> 
> --enable-scripts=old|new|both|none
> (defaults to new)

Too complicated.  Issue a warning if invoked with old args and remove
old link in 8.x.  You can test basename $0 and test to see how you were
invoked.


> since a while back there was some talk about removing the scripts
> altogether (which also died after Thomas protested, I think).

I like the scripts too.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026



view thread (7+ messages)  latest in thread

Message-ID: <199910112224.SAA09670@candle.pha.pa.us>
Permalink:  ../199910112224.SAA09670@candle.pha.pa.us/
Also on:    postgresql.org/message-id/199910112224.SAA09670@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: maillist@candle.pha.pa.us, peter_e@gmx.net, lockhart@alumni.caltech.edu, ser@perio.unlp.edu.ar, pgsql-hackers@postgresql.org
  Subject: Re: Scripts (was Re: [HACKERS] Re: [INTERFACES] Next release is 7.0(?))
  In-Reply-To: <199910112224.SAA09670@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox