Re: pg_backup symlink?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pg_backup symlink?
Дата
Msg-id 200007102241.SAA04975@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: pg_backup symlink?  (Philip Warner <pjw@rhyme.com.au>)
Список pgsql-hackers
> At 00:24 11/07/00 +0200, Peter Eisentraut wrote:
> >Philip Warner writes:
> >
> >> Does anyone have a philosophical objection to a symlink from pg_dump to
> >> (new) pg_backup?
> >
> >Yes. The behaviour of a program should not depend on the name used to
> >invoke it. You can use shell aliases or scripts for that.
> 
> OK, I suppose I was thinking of the pg_dump symlink as a tool for
> compatibility. 
> 
> Is there a good solution? It dumps to text for compatibility with the old
> pg_dump, but I will most often use 'pg_dump -Fc --blob'. Is there a
> recommended 'correct' approach?

The BSD way is to define an environment variable that is used to supply
additional arguments to the command.  For example, BLOCKSIZE controls if
blocks are reported in 512 or 1k sizes by commands like du.

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


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: more corruption
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Templates