Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id A40122E015B for ; Mon, 10 Dec 2007 15:51:10 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 01851-09 for ; Mon, 10 Dec 2007 15:51:03 -0400 (AST) Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id 35CB42E0104 for ; Mon, 10 Dec 2007 15:51:02 -0400 (AST) Received: from perhan.alvh.no-ip.org (200-126-109-160.bk7-dsl.surnet.cl [200.126.109.160]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id lBAJoj0b021271 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 10 Dec 2007 11:50:48 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 8DDCA47C81; Mon, 10 Dec 2007 16:50:46 -0300 (CLST) Date: Mon, 10 Dec 2007 16:50:46 -0300 From: Alvaro Herrera To: Peter Koczan Cc: pgsql-admin@postgresql.org Subject: Re: Legacy foreign keys Message-ID: <20071210195046.GE27126@alvh.no-ip.org> References: <4544e0330712101112r6aeccfcckef378a7ea1795e07@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4544e0330712101112r6aeccfcckef378a7ea1795e07@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Mon, 10 Dec 2007 11:50:48 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/40 X-Sequence-Number: 27557 Peter Koczan escribió: > Hi all, > > I am having a problem with what appear to be legacy foreign keys in > some of my databases (probably pre-7.2 days). They won't restore from > 8.2 to 8.3, because the '' field in the called function isn't > unique when I try to restore more than one of these legacy keys 8.3's pg_dump contains smarts to dump these things as normal FKs. Try it. -- Alvaro Herrera http://www.PlanetPostgreSQL.org/ "Postgres is bloatware by design: it was built to house PhD theses." (Joey Hellerstein, SIGMOD annual conference 2002)