> postgres=> create trigger trg1 after insert on smile for each row > postgres-> execute procedure ttt() ; > ERROR: CreateTrigger: function ttt () does not exist > postgres=> \q > > So my question is - why does the create trigger function fail when the > function does in > fact exist ? > The procedure called from a trigger has to return opaque (the triggering tuple). The elog could probably be modified to: > ERROR: CreateTrigger: function ttt () returning opaque does not exist to help find your error. Andreas
ZEUGSWETTER Andreas IZ5 <Andreas.Zeugswetter@telecom.at> writes:
> The procedure called from a trigger has to return opaque (the triggering
> tuple).
> The elog could probably be modified to:
>> ERROR: CreateTrigger: function ttt () returning opaque does not exist
> to help find your error.
I think two separate messages would be better... will fix it.
regards, tom lane
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера