X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id D9625B42169 for ; Sun, 6 Jul 2003 14:21:19 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 44960-02 for ; Sun, 6 Jul 2003 11:20:47 -0300 (ADT) Received: from compos-mail.compos.com.br (compos-mail.compos.com.br [200.254.243.67]) by svr1.postgresql.org (Postfix) with ESMTP id A89D3B42167 for ; Sun, 6 Jul 2003 11:20:46 -0300 (ADT) Received: (qmail 4101 invoked from network); 6 Jul 2003 14:20:48 -0000 Received: from unknown (HELO WebmailCompos) ([200.254.243.66]) (envelope-sender ) by compos-mail.compos.com.br (qmail-ldap-1.03) with SMTP for ; 6 Jul 2003 14:20:48 -0000 Received: from client 200.147.110.44 for UebiMiau (webmail client); Sun, 6 Jul 2003 11:20:49 -0300 Date: Sun, 6 Jul 2003 11:20:49 -0300 From: Danilo Costa Viana To: Reply-To: Danilo Costa Viana Subject: Problem after deleting pg_trigger X-Priority: 3 X-Mailer: Webmail Compos 2.0 Content-Transfer-Encoding: 8bit X-MSMail-Priority: Medium Importance: Medium Content-Type: text/html; charset="iso-8859-1"; MIME-Version: 1.0 Message-Id: <20030706142046.A89D3B42167@svr1.postgresql.org> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/52 X-Sequence-Number: 9393

I was importing a database and acidently duplicated all my triggers. I was searching for a way to delete the duplicated triggers and found the table pg_trigger. I tought that if I deleted all the records in that table, I could recreate the triggers. So I executed the command DELETE FROM pg_trigger.

After that, everytime I try to enter my database, postgres gives me that error message: FATAL 1: RelationBuildTriggers: 1 record(s) not found for rel pg_shadow.

After that I canīt enter the database anymore. I discovered that I deleted one row of pg_trigger that references pg_shadow, but I canīt enter the database to recreate the trigger I deleted. Anyone know a way of recreating this trigger without entering the database? (maybe copying from another place).

Thanks.