| От | Noah Heusser |
|---|---|
| Тема | Re: Dynamic Log tigger (plpgsql) |
| Дата | |
| Msg-id | 4677FD20.6090207@heussers.ch обсуждение исходный текст |
| Ответ на | Re: Dynamic Log tigger (plpgsql) ("Sibte Abbas" <sibtay@gmail.com>) |
| Список | pgsql-general |
>> How can I do "OLD.columnName != NEW.columnName" if I don't know what the >> columnNames are at Compile Time? >> I have the columnName in a variable. > > Are you trying to do this from a plpgsql function? If so then I think > you should try to do this from a C function. > > With C functions you will get more control over the new and old > versions of the tuple since you get their pointers via > TriggerData->tg_trigtuple (old tuple) and TriggerData->tg_newtuple > (new tuple). > I think this would work. And if there is no other possibility i will do that. But as I saw, it is necessary to have Sysadmin rights, if you want to add a C function. If possible i want to do it as a regular DB-Owner.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера