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?