Re: Re: How to drop an <unnamed> trigger

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Frank Joerdens <frank(at)joerdens(dot)de>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Re: How to drop an <unnamed> trigger
Date: 2001-03-08 17:50:33
Message-ID: 28010.984073833@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Frank Joerdens <frank(at)joerdens(dot)de> writes:
>> Just an idea: Is it safe to just delete the corresponding row in
>> pg_trigger?

> No, it ain't: After deleting the rows corresponding to the offending
> triggers in pg_trigger, I can't vacuum, or dump.

You need to adjust the reltriggers counts in the associated pg_class
entries, too.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message dev 2001-03-08 18:55:46 Re: Writing SQL functions in Postgres
Previous Message Christof Glaser 2001-03-08 17:13:38 Re: How to build this field