X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id B972ED1B46B for ; Wed, 31 Dec 2003 16:10:55 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 02677-05 for ; Wed, 31 Dec 2003 12:10:06 -0400 (AST) Received: from stamp.musicrebellion.com (stamp.musicrebellion.com [63.170.191.108]) by svr1.postgresql.org (Postfix) with ESMTP id AC918D1B4D3 for ; Wed, 31 Dec 2003 12:10:05 -0400 (AST) Received: from adsl-66-73-138-22.dsl.ipltin.ameritech.net ([66.73.138.22] helo=musicrebellion.com) by stamp.musicrebellion.com with esmtp (Exim 3.35 #1 (Debian)) id 1Abiv2-0000qa-00 for ; Wed, 31 Dec 2003 11:10:00 -0500 Message-ID: <3FF2F4BD.5000804@musicrebellion.com> Date: Wed, 31 Dec 2003 11:09:33 -0500 From: Kris Kiger User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1 X-Accept-Language: en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: dump contents & missing functions References: <20031015011052.GA8143@miltonstreet.com> <1066228820.24290.275.camel@linda.lfix.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests=REFERENCES, USER_AGENT_MOZILLA_UA X-Spam-Level: X-Archive-Number: 200312/353 X-Sequence-Number: 11859 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