From: Tom Lane <tgl@sss.pgh.pa.us>
To: Karl Wright <kwright@metacarta.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Export/import issue/question
Date: Thu, 21 Jun 2007 10:08:49 -0400
Message-ID: <15839.1182434929@sss.pgh.pa.us> (raw)
In-Reply-To: <467A83ED.8000904@metacarta.com>
References: <4677F3D2.6050909@metacarta.com>
<7516.1182273130@sss.pgh.pa.us>
<467A83ED.8000904@metacarta.com>
Karl Wright <kwright@metacarta.com> writes:
> (a) How do I get around the "out of memory" error for pg_restore?
Does this table have foreign key constraints? I imagine you're running
out of space for the deferred-trigger list.
> (b) How can I get the restore performance up to the level where it takes
> only a couple of hours at most to do this restore?
For both this and (a), the main thing is "avoid data-only restores".
Read
http://www.postgresql.org/docs/8.2/static/populate.html
particularly the last section about making efficient use of pg_dump.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, kwright@metacarta.com
Subject: Re: Export/import issue/question
In-Reply-To: <15839.1182434929@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox