Re: can't CREATE TRIGGER

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: can't CREATE TRIGGER
Дата
Msg-id 20070121192846.M8174@megazone.bigpanda.com
обсуждение исходный текст
Ответ на can't CREATE TRIGGER  (gustavo halperin <ggh.develop@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: gustavo halperin
Дата:
Сообщение: can't CREATE TRIGGER
Следующее
От: "Jaime Casanova"
Дата:
Сообщение: Re: can't CREATE TRIGGER