Skip site navigation (1) Skip section navigation (2)

Re: Export/import issue/question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Karl Wright <kwright(at)metacarta(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Export/import issue/question
Date: 2007-06-21 14:08:49
Message-ID: 15839.1182434929@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
Karl Wright <kwright(at)metacarta(dot)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

In response to

pgsql-admin by date

Next:From: Tom LaneDate: 2007-06-21 14:13:31
Subject: Re: initdb problem
Previous:From: Karl WrightDate: 2007-06-21 13:58:05
Subject: Re: Export/import issue/question

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group