Peter Eisentraut wrote:
>pg_restore has some options that are supposed to allow restoring some or
>all indexes/tables/triggers/etc. For example
>restores all tables and
>restores only the named table. The equivalent short option is -t but it
>does not allow restoring all tables, since it requires an argument. I
>suggest that an argument of '*' also means to restore all tables.
I don't like that; it will need to be escaped with \ or the shell will
substitute the contents of the current directory for the *.
Why not use `-t all' or `-A'?
You should also change the help text a bit:
-t [table], --table[=table] dump for this table only
gives no hint that omitting `=table' will restore all tables.
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
"Blessed are the pure in heart, for they shall see
God." Matthew 5:8
pgsql-hackers by date
|Next:||From: Peter Eisentraut||Date: 2001-01-07 16:02:53|
|Subject: Re: pg_restore options issues |
|Previous:||From: Oliver Elphick||Date: 2001-01-07 13:35:55|
|Subject: Re: Re: Beta2 ... ? |