From: | "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_restore options issues |
Date: | 2001-01-07 13:42:16 |
Message-ID: | 200101071342.f07DgGN21414@linda.lfix.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
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 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
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2001-01-07 16:02:53 | Re: pg_restore options issues |
Previous Message | Oliver Elphick | 2001-01-07 13:35:55 | Re: Re: Beta2 ... ? |