From: Kris Kiger <kris@musicrebellion.com>
To: pgsql-admin@postgresql.org
Subject: dump contents & missing functions
Date: Wed, 31 Dec 2003 11:09:33 -0500
Message-ID: <3FF2F4BD.5000804@musicrebellion.com> (raw)
References: <20031015011052.GA8143@miltonstreet.com>
<1066228820.24290.275.camel@linda.lfix.co.uk>
Is it possible to make a schema change to a dumped backup? I've
un-tarred the file and edited toc.dat and restore.sql, but when I
attempt to pg_restore the re-tarred file, I get an archiver out of
memory error.
This whole issue arose when I set a default in a table row equal to a
value that a plpgsql function returns (ie the table default =
functionname(variable)). However, after exploration of the dump files,
it appears that pg_restore tries to restore the tables before it
restores functions...hence I get an error upon restore of the original
dump, because the function does not yet exist. Does anyone know if the
ordering of the restore is in fact the problem? Any input is appreciated!
Kris
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: kris@musicrebellion.com
Subject: Re: dump contents & missing functions
In-Reply-To: <3FF2F4BD.5000804@musicrebellion.com>
References: <20031015011052.GA8143@miltonstreet.com> <1066228820.24290.275.camel@linda.lfix.co.uk> <3FF2F4BD.5000804@musicrebellion.com>
* 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