Re: Trigger Blunder

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ryan(at)paymentalliane(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Trigger Blunder
Date: 2001-03-02 14:51:45
Message-ID: 3185.983544705@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

ryan(at)paymentalliane(dot)net writes:
> I had smoe truggers I wanted to get rid of - instead of doing a DROP
> TRIGGER sql command, I deleted the trigger records from the pg_trigger
> table.... it was late.... i don't know what I was thinking!

> Anyhow - now when I try to delete anything from these tables, or
> delete the tables themself I get the message:

> RelationBuildTriggers: 1 record(s) not found for rel tablename

Reset the "reltriggers" count (field in pg_class) to zero for each
affected table.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martin A. Marques 2001-03-02 14:52:53 Re: Thought on OIDs
Previous Message Mitch Vincent 2001-03-02 14:51:01 Re: Thought on OIDs