Re: Transition relation clarification

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Transition relation clarification
Дата
Msg-id CAKFQuwasvmo816dz=fyqbMHLMcEj8KBWa=cguaSXqqiXHT=6Xw@mail.gmail.com
обсуждение исходный текст
Ответ на Transition relation clarification  (Dull Bananas <dull.bananas0@gmail.com>)
Ответы Re: Transition relation clarification  (Dull Bananas <dull.bananas0@gmail.com>)
Список pgsql-docs
On Mon, Jan 1, 2024 at 9:35 AM Dull Bananas <dull.bananas0@gmail.com> wrote:
The docs should mention that transition relations aren't automatically made available in functions called by the trigger function. This unknown behavior caused a lot of frustration for me.

Seems to fall into the "if it isn't documented it doesn't happen" category of things that we simply choose not to clutter the documentation with.  Called functions don't inherit stuff from the caller.  It is like documenting a variable in the calling function isn't visible to the called function.  Admittedly at least with variables you can pass them via arguments.  The special trigger state is indeed available in the trigger returning function when it is the function directly invoked by the trigger.

David J.

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

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: Postgres compilation instructions do not work on modern debian or ubuntu
Следующее
От: Dull Bananas
Дата:
Сообщение: Re: Transition relation clarification