Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0E2392E004B for ; Wed, 19 Mar 2008 16:17:14 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 27164-06 for ; Wed, 19 Mar 2008 16:17:11 -0300 (ADT) Received: from mx3.hub.org (mx3.hub.org [206.223.169.73]) by postgresql.org (Postfix) with ESMTP id 80A102E005B for ; Wed, 19 Mar 2008 16:17:11 -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 mx3.hub.org (Postfix) with ESMTP id 02D7A380AB8 for ; Wed, 19 Mar 2008 16:17:10 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m2JJH2Oc017819; Wed, 19 Mar 2008 15:17:02 -0400 (EDT) To: Aaron Brown cc: pgsql-admin@postgresql.org Subject: Re: pg_restore failing with "ERROR: out of memory" In-reply-to: References: Comments: In-reply-to Aaron Brown message dated "Wed, 19 Mar 2008 15:08:59 -0400" Date: Wed, 19 Mar 2008 15:17:01 -0400 Message-ID: <17818.1205954221@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/148 X-Sequence-Number: 28631 Aaron Brown writes: > Yes, it kind of needs to be data only since I am pulling from a slonized > database. My experience has been if you donıt load the schema first with a > schema from slony1_extract_schema.sh, we end up with all the slony triggers > and crap in the dump. If there is a better way of doing this, Iım > definitely all ears. Well, you'd need to take that up on the Slony lists, but I'd say that Slony definitely ought to provide a better export mechanism than forcing you to use a standard data-only dump. At minimum they should teach that script to emit two separate files: one to load before the data and one after. Building the indexes and FK constraints on already-loaded data is a heck of a lot faster. regards, tom lane