Re: trigger fails

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: trigger fails
Дата
Msg-id CAKFQuwbT_8bzKcJohUVmR_N--x5h9X-dB2rhozz6b99ynd6rpw@mail.gmail.com
обсуждение исходный текст
Ответ на trigger fails  (Roger Mason <rmason@mun.ca>)
Ответы Re: trigger fails  (Roger Mason <rmason@mun.ca>)
Список pgsql-novice
On Sat, Aug 28, 2021 at 7:04 AM Roger Mason <rmason@mun.ca> wrote:

    get_final_energy (NEW.jid);


If you want to use this function within a trigger it should be redefined to accept "NEW" (i.e., the table record itself), not the jid column (IOW, don't perform a select on the table during the middle of the trigger execution).

David J.

В списке pgsql-novice по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: trigger fails
Следующее
От: Roger Mason
Дата:
Сообщение: Re: trigger fails