Re: Re: How to drop an trigger

Поиск
Список
Период
Сортировка
От Frank Joerdens
Тема Re: Re: How to drop an trigger
Дата
Msg-id 20010308175126.A16939@rakete.joerdens.de
обсуждение исходный текст
Ответ на Re: How to drop an trigger  (Frank Joerdens <frank@joerdens.de>)
Ответы Re: Re: How to drop an trigger  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
On Thu, Mar 08, 2001 at 05:06:29PM +0100, Frank Joerdens wrote:
> On Thu, Mar 08, 2001 at 04:42:46PM +0100, Frank Joerdens wrote:
> > I've created quite a few foreign key constraints in the database that I
> > am currently working on, and now that I've altered the structure and
> > dropped a table that had a foreign key reference to a couple of other
> > tables, I need to get rid of those foreign keys (they weren't dropped
> > automagically with the table), as I get errors on trying to update those
> > tables.
> 
> 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.

- Frank


В списке pgsql-sql по дате отправления:

Предыдущее
От: Najm Hashmi
Дата:
Сообщение: Re: quotes in pl/pgsql 0n variable type text or varchar
Следующее
От: Boulat Khakimov
Дата:
Сообщение: Writing SQL functions in Postgres