Re: Triggers

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Enrico Comini <algobit(at)algobit(dot)com>
Cc: ML-Postrges-general <Pgsql-General(at)Postgresql(dot)org>
Subject: Re: Triggers
Date: 2000-09-22 16:54:11
Message-ID: Pine.BSF.4.10.10009220952430.66920-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


On Fri, 22 Sep 2000, Enrico Comini wrote:

> Question
> If have a table with a primary key and another table with outer key
> referenced on the primary of the first table.
> If I want list the active triggers how i have to do ?

select * from pg_trigger;

> If I delete de first table I have the message (drop table implicity drop
> reference .......), Then I re-create the first table, my question is how to
> re-create the trigger without drop and re-create the second table.

Probably your best bet is to:
ALTER TABLE <second table> ADD CONSTRAINT <constraintname>
FOREIGN KEY (<cols>) REFERENCES ...

In response to

  • Triggers at 2000-09-22 13:50:57 from Enrico Comini

Browse pgsql-general by date

  From Date Subject
Next Message Mike 2000-09-22 17:28:22 PSQL Books
Previous Message Aggarwal , Ajay 2000-09-22 16:21:40 what if PQexec() result is toooooo big?