Re: Dump Version - Mailing list pgsql-hackers

From Philip Warner
Subject Re: Dump Version
Date
Msg-id 6.1.1.1.0.20040813220313.08ac4d60@203.8.195.10
Whole thread Raw
In response to Re: Dump Version  (strk <strk@keybit.net>)
Responses Re: Dump Version  (strk <strk@keybit.net>)
List 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       |/ 



pgsql-hackers by date:

Previous
From: Thomas Hallgren
Date:
Subject: Trigger function returning null
Next
From: Andrew Dunstan
Date:
Subject: [Fwd: Re: [pgsql-hackers-win32] Import from Linux to Windows]