Re: Trigger Blunder - Mailing list pgsql-general

From Tom Lane
Subject Re: Trigger Blunder
Date
Msg-id 3185.983544705@sss.pgh.pa.us
Whole thread Raw
In response to Trigger Blunder  (ryan@paymentalliane.net)
Responses Re: Trigger Blunder
List pgsql-general
ryan@paymentalliane.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

pgsql-general by date:

Previous
From: "Gregory Wood"
Date:
Subject: Re: serial properties
Next
From: Jose Manuel Lorenzo Lopez
Date:
Subject: Re: Re: Help with pq++