Re: can't CREATE TRIGGER - Mailing list pgsql-general

From Stephan Szabo
Subject Re: can't CREATE TRIGGER
Date
Msg-id 20070121192846.M8174@megazone.bigpanda.com
Whole thread Raw
In response to can't CREATE TRIGGER  (gustavo halperin <ggh.develop@gmail.com>)
List pgsql-general
On Mon, 22 Jan 2007, gustavo halperin wrote:

> I can't create triggers, when I call for example:
> ficha=> CREATE TRIGGER TRG_persons_id AFTER INSERT ON ficha_ofperson
> ficha-> EXECUTE PROCEDURE add_person_id ( 'family_id', 'person_id' );
>
> , the creation never finish and finally, after many minutes, I kill the
> creation with Ctrl+c.
> I try also a simple trigger creation with a function without arguments
> and also the creation never finish.

One possibility is that some transaction has a lock on the table which
would block the create trigger, do you have any long running transactions
or some kind of transaction pooling that might be keeping the table locked
for a long time? Can you create simple triggers on another table?

pgsql-general by date:

Previous
From: gustavo halperin
Date:
Subject: can't CREATE TRIGGER
Next
From: "Jaime Casanova"
Date:
Subject: Re: can't CREATE TRIGGER