Re: Survey: renaming/removing script binaries (createdb, createuser...)

From: Harald Fuchs <hari(dot)fuchs(at)googlemail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Survey: renaming/removing script binaries (createdb, createuser...)
Date: 2008-03-27 09:44:40
Message-ID: pumyokxzzr.fsf@srv.protecting.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In article <12487(dot)1206565567(at)sss(dot)pgh(dot)pa(dot)us>,
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

>> I note that we can continue to have the current executables stashed in
>> PREFIX/share/libexec and let the "pg" executable exec them.

> Not share/ surely, since these are executables, but yeah.

> This brings me to the idea that "pg" is a very small stupid program
> that just tries to match its first argument against a filename in
> PREFIX/libexec/postgresql. If it finds a match it execs that program
> with the remaining args, else it fails.

Add an optional command-line argument for specifying an alternative
PREFIX, and the problem of multiple PostgreSQL versions on one host is
solved as well.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2008-03-27 09:44:41 Re: Using tables in other PostGreSQL database
Previous Message Alain Roger 2008-03-27 09:30:33 returned value from SQL statement