Re: can't CREATE TRIGGER

From: Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>
To: gustavo halperin <ggh(dot)develop(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: can't CREATE TRIGGER
Date: 2007-01-22 03:36:39
Message-ID: 20070121192846.M8174@megazone.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jaime Casanova 2007-01-22 03:38:05 Re: can't CREATE TRIGGER
Previous Message Chris 2007-01-22 03:17:20 Re: More grist for the PostgreSQL vs MySQL mill