| От | Doug McNaught |
|---|---|
| Тема | Re: Field collection in trigger |
| Дата | |
| Msg-id | m365kcb8y2.fsf@varsoon.wireboard.com обсуждение исходный текст |
| Ответ на | Field collection in trigger (Josué Maldonado <josue@lamundial.hn>) |
| Ответы |
Re: Field collection in trigger
|
| Список | pgsql-general |
Josué Maldonado <josue@lamundial.hn> writes: > Hello list, > > First of all, excuse me if this is not the right place to ask my question. > > Is there a way in postgresql to loop to all the fields of a given > table and compare the OLD and NEW value for each field. I need to make > an audit table that must contain only the fields changed after and > insert/update. You should be able to do this in a Perl or C trigger. It can't be done in PL/pgSQL without writing a custom trigger for each table that hard-codes all the field names. -Doug
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера