Re: [HACKERS] Added schema selection to pg_restore

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Richard van den Berg <richard(dot)vandenberg(at)trust-factory(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: [HACKERS] Added schema selection to pg_restore
Date: 2005-06-09 18:00:03
Message-ID: 200506091800.j59I03Y16605@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Richard van den Berg wrote:
> Since I needed this feature badly, I added the -n / --schema switch to
> pg_restore. It restores the given schemaname only. It can be used in
> conjunction with the -t and other switches to make the selection very
> fine grained.
>
> This patches works for me, but it could use more testing.
>
> Please Cc me in the discussion, as I am not on these lists.
>
> I used the current CVS tree at
> :pserver:anoncvs(at)anoncvs(dot)postgresql(dot)org:/projects/cvsroot as a starting
> point.

I have applied your patch with minor wording changes --- new version
attached. It will appear in 8.1.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Attachment Content-Type Size
unknown_filename text/plain 4.2 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2005-06-09 18:15:28 Re: pg_config --configure ...
Previous Message Rod Taylor 2005-06-09 17:37:39 Re: Quick-and-dirty compression for WAL backup blocks

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2005-06-09 18:34:24 Broken code in recent troff commit
Previous Message Tom Lane 2005-06-09 17:40:27 Re: final light versions of Oracle compatibility (SQLSTATE, GREATEST,