Re: pg_backup symlink? - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: pg_backup symlink?
Date
Msg-id 200007102241.SAA04975@candle.pha.pa.us
Whole thread Raw
In response to Re: pg_backup symlink?  (Philip Warner <pjw@rhyme.com.au>)
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: more corruption
Next
From: Tom Lane
Date:
Subject: Re: Templates