Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 5BF809FB1ED for ; Thu, 21 Jun 2007 11:08:56 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 88593-05 for ; Thu, 21 Jun 2007 11:08:52 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 6A2539FA6AC for ; Thu, 21 Jun 2007 11:08:52 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l5LE8nxT015840; Thu, 21 Jun 2007 10:08:49 -0400 (EDT) To: Karl Wright cc: pgsql-admin@postgresql.org Subject: Re: Export/import issue/question In-reply-to: <467A83ED.8000904@metacarta.com> References: <4677F3D2.6050909@metacarta.com> <7516.1182273130@sss.pgh.pa.us> <467A83ED.8000904@metacarta.com> Comments: In-reply-to Karl Wright message dated "Thu, 21 Jun 2007 09:58:05 -0400" Date: Thu, 21 Jun 2007 10:08:49 -0400 Message-ID: <15839.1182434929@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/220 X-Sequence-Number: 25888 Karl Wright 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