Re: Edit a dump file?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andreas Schlegel <schlegelaw(at)gmx(dot)de>
Cc: Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Edit a dump file?
Date: 2003-01-20 21:23:00
Message-ID: 21820.1043097780@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andreas Schlegel <schlegelaw(at)gmx(dot)de> writes:
> My question is: is there change to edit the the dump and remove the
> view? I tried to open it with vi. I can read a bit but not all.

You can do a selective restore by listing the dump's table of contents
into a file, editing the file, and then using it as a control file for
pg_restore. See the pg_restore man page.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Medi Montaseri 2003-01-20 21:43:12 When to vacuum
Previous Message Tom Lane 2003-01-20 21:15:26 Re: Help on query plan. (was: select like and indexes)