Peter Eisentraut wrote: >pg_restore has some options that are supposed to allow restoring some or >all
indexes/tables/triggers/etc. For example > >pg_restore --table > >restores all tables and > >pg_restore
--table=my_table> >restores only the named table. The equivalent short option is -t but it >does not allow restoring
alltables, 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.Elphick@lfix.co.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