From: Tom Lane <tgl@sss.pgh.pa.us>
To: Aaron Brown <abrown@bzzagent.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_restore failing with "ERROR: out of memory"
Date: Wed, 19 Mar 2008 15:17:01 -0400
Message-ID: <17818.1205954221@sss.pgh.pa.us> (raw)
In-Reply-To: <C406DD0B.5B9C%abrown@bzzagent.com>
References: <C406DD0B.5B9C%abrown@bzzagent.com>
Aaron Brown <abrown@bzzagent.com> 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
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, abrown@bzzagent.com
Subject: Re: pg_restore failing with "ERROR: out of memory"
In-Reply-To: <17818.1205954221@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