| От | Tom Lane |
|---|---|
| Тема | Re: Dynamic access to record columns (in PL/pgsql) |
| Дата | |
| Msg-id | 13577.1159634869@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Dynamic access to record columns (in PL/pgsql) (Daniele Mazzini <daniele.mazzini@libero.it>) |
| Ответы |
Re: Dynamic access to record columns (in PL/pgsql)
|
| Список | pgsql-general |
Daniele Mazzini <daniele.mazzini@libero.it> writes:
> I have a trigger procedure which I want to be called after insert or
> update on different tables. In this procedure, I need to find the values
> of key fields for the affected table in the NEW record, but I can't find
> a way to access a field the name of which I only know at execution time.
There is no way to do that in plpgsql. You could do it in the other PLs
(eg plperl, pltcl) since they are not as strongly typed as plpgsql.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера