plpython trigger troubles.

Поиск
Список
Период
Сортировка
От James Gregory
Тема plpython trigger troubles.
Дата
Msg-id 1048516476.2893.3.camel@pirate.bridge.anchor.net.au
обсуждение исходный текст
Список pgsql-general
Hi all,

having some trouble with triggers. Defined a trigger like so:

create trigger "domain_orderitem_foreign_key_check" before insert or
update on domain_orderitem for each row execute procedure
foreign_key_check('domain_orderitem');

which calls a plpython function, the first line of which is:

create or replace function foreign_key_check () returns trigger as '
plpy.notice(''running foreign key check'')

ie - I should be seeing a message every time I insert or update on that
table. However, running

update domain_orderitem set domain_id = 147;

just sits there indefinitely. Why am I not seeing the notice message?
The function *should* "work" - but I don't think that's the problem. It
appears to be choking on the actual call.

What can I do to fix this?

thanks,

James.


В списке pgsql-general по дате отправления:

Предыдущее
От: Gary M
Дата:
Сообщение: Re: From a real novice
Следующее
От: "Tamir Halperin"
Дата:
Сообщение: Re: FW: [NOVICE] From a real novice