| От | Merlin Moncure |
|---|---|
| Тема | Re: Verify a record has a column in a plpgsql trigger |
| Дата | |
| Msg-id | b42b73151002050708q4b524118q65b5ca9ff0b6ea79@mail.gmail.com обсуждение |
| Ответ на | Re: Verify a record has a column in a plpgsql trigger (Tim Landscheidt <tim@tim-landscheidt.de>) |
| Ответы |
Re: Verify a record has a column in a plpgsql trigger
|
| Список | pgsql-general |
On Thu, Feb 4, 2010 at 7:36 PM, Tim Landscheidt <tim@tim-landscheidt.de> wrote: >> Any insight on a way I can grab NEW.(colRow.attname) without EXECUTE USING? > > Wouldn't it be *much* easier to just have /two/ trigger > functions? Your "editor" columns probably don't pop up and > disappear randomly. or, you could pass an argument to the trigger function from 'create trigger'...you have to have one for each table anyways, and you could wrap the trigger creation with some dyna-sql that looks up the editor field and sets the argument appropriately, merlin
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера