Re: Dump Version

From: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
To: strk <strk(at)keybit(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Dump Version
Date: 2004-08-13 12:05:09
Message-ID: 6.1.1.1.0.20040813220313.08ac4d60@203.8.195.10
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 08:53 PM 13/08/2004, strk wrote:
>Commenting out lines from the dump corresponding to objects that
>will be defined by another script.

I may have misunderstood, but try:

pg_restore -l dumpfile > listfile

then delete lines from listfile that you do not want, and do:

pg_restore -L listfile dumpfile

and it will only restore the items corresponding to lines in listfile.

----------------------------------------------------------------
Philip Warner | __---_____
Albatross Consulting Pty. Ltd. |----/ - \
(A.B.N. 75 008 659 498) | /(@) ______---_
Tel: (+61) 0500 83 82 81 | _________ \
Fax: (+61) 03 5330 3172 | ___________ |
Http://www.rhyme.com.au | / \|
| --________--
PGP key available upon request, | /
and from pgp.mit.edu:11371 |/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2004-08-13 12:22:26 [Fwd: Re: [pgsql-hackers-win32] Import from Linux to Windows]
Previous Message Thomas Hallgren 2004-08-13 11:25:19 Trigger function returning null