From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pg_restore should accept multiple -t switches? |
Date: | 2010-08-10 11:18:55 |
Message-ID: | 20100810111855.GD29153@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Aug 10, 2010 at 05:13:22PM +0900, Fujii Masao wrote:
> Hi,
>
> pg_dump allows us to select multiple target tables by using
> multiple -t switches, but pg_restore does not. So, when
> restoring multiple tables, we have to run pg_restore more
> than once as follows. This is a pain to me.
>
> $ pg_restore -t tbl1 db.dump
> $ pg_restore -t tbl2 db.dump
>
> Is it worth allowing pg_restore to accept multiple -t
> switches as well as pg_dump?
>
> $ pg_restore -t tbl1 -t tbl2 db.dump
>
> Regards,
Yes. :)
What other functionality in pg_dump does pg_restore not duplicate?
Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics
Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate
From | Date | Subject | |
---|---|---|---|
Next Message | Erik Rijkers | 2010-08-10 12:01:31 | Re: pg_restore should accept multiple -t switches? |
Previous Message | Boxuan Zhai | 2010-08-10 09:38:09 | MERGE command for inheritance |