Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 0F474632AE5 for ; Wed, 10 Feb 2010 12:21:21 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 87839-10 for ; Wed, 10 Feb 2010 16:21:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 68CCE632202 for ; Wed, 10 Feb 2010 12:21:07 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 6DFFF348049; Wed, 10 Feb 2010 08:21:06 -0800 (PST) Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1s2Su6hYiPTx; Wed, 10 Feb 2010 08:21:06 -0800 (PST) Received: from perhan.alvh.no-ip.org (190-95-31-230.bk17-dsl.surnet.cl [190.95.31.230]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 12136348034; Wed, 10 Feb 2010 08:21:06 -0800 (PST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 22D3F6E82A; Wed, 10 Feb 2010 13:21:04 -0300 (CLST) Date: Wed, 10 Feb 2010 13:21:04 -0300 From: Alvaro Herrera To: =?iso-8859-1?Q?I=F1igo?= Martinez Lasala Cc: pgsql-admin Subject: Re: Disabling triggers with psql (gforge 7.4 to 8.2 migration) Message-ID: <20100210162104.GE4922@alvh.no-ip.org> References: <99024f5f1002071922j5b14c350mb1612313690f16ec@mail.gmail.com> <87k4umg0c3.fsf@hi-media-techno.com> <1265794218.3714.12.camel@coyote> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1265794218.3714.12.camel@coyote> User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.546 tagged_above=-10 required=5 tests=AWL=0.053, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201002/82 X-Sequence-Number: 33685 Iņigo Martinez Lasala wrote: > Third one, and we haven't been able to fix it, is we cannot restore data > dump via psql due to psql does not have an option to disable triggers. > So, when restoring data, it fails. So... is there any way to disable in > a psql session all triggers same way like with pg_restore > --disable-triggers? Or can we convert plain text dump to be processed > by pg_restore? Perhaps a table by table trigger disabling script? Have you tried using 8.2's pg_dump instead of the old one? -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support