Re: Trigger function

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Trigger function
Дата
Msg-id CAKFQuwY-1SH+2aGbceazDw+MvrBLC1raD951vBA7LivE2QmNzQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Trigger function  ("Nicolas Mitchell" <mitchelln@posteo.net>)
Ответы Re: Trigger function
Список pgsql-novice
On Tue, Jul 27, 2021 at 4:04 PM Nicolas Mitchell <mitchelln@posteo.net> wrote:

> When you write a trigger for a table you should be executing commands
> against the same table.

I believe this implies that the code creating a new object (INSERT INTO
public.object…) row should reside elsewhere.


Since the trigger is on host but the insert is going to object my observation does not apply.

Personally, I'm generally against placing this kind of data construction logic inside triggers.

David J.

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

Предыдущее
От: "Nicolas Mitchell"
Дата:
Сообщение: Re: Trigger function
Следующее
От: "Nicolas Mitchell"
Дата:
Сообщение: Re: Trigger function