pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Danilo Costa Viana <dcviana@dobrasil.com.br>
To: pgsql-admin@postgresql.org
Subject: Problem after deleting pg_trigger
Date: Sun, 6 Jul 2003 11:20:49 -0300
Message-ID: <20030706142046.A89D3B42167@svr1.postgresql.org> (raw)

<P>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.</P>
<P>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.</P>
<P>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).</P>
<P>Thanks.</P>




Message-ID: <20030706142046.A89D3B42167@svr1.postgresql.org>
Permalink:  ../20030706142046.A89D3B42167@svr1.postgresql.org/
Also on:    postgresql.org/message-id/20030706142046.A89D3B42167@svr1.postgresql.org

 · 

reply

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: dcviana@dobrasil.com.br
  Subject: Re: Problem after deleting pg_trigger
  In-Reply-To: <20030706142046.A89D3B42167@svr1.postgresql.org>
  References: <20030706142046.A89D3B42167@svr1.postgresql.org>

* 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