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

Поиск
Список
Период
Сортировка
От Harald Fuchs
Тема Re: Survey: renaming/removing script binaries (createdb, createuser...)
Дата
Msg-id pumyokxzzr.fsf@srv.protecting.net
обсуждение исходный текст
Ответ на Survey: renaming/removing script binaries (createdb, createuser...)  (Zdeněk Kotala <Zdenek.Kotala@Sun.COM>)
Список pgsql-general
In article <12487.1206565567@sss.pgh.pa.us>,
Tom Lane <tgl@sss.pgh.pa.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.

В списке pgsql-general по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Using tables in other PostGreSQL database
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: returned value from SQL statement