Re: In which session context is a trigger run?

Поиск
Список
Период
Сортировка
От Peter J. Holzer
Тема Re: In which session context is a trigger run?
Дата
Msg-id 20181231105838.mcbeq3jskjoyd2jq@hjp.at
обсуждение исходный текст
Ответ на Re: In which session context is a trigger run?  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: In which session context is a trigger run?
Список pgsql-general
On 2018-12-30 08:56:13 -0800, Adrian Klaver wrote:
> On 12/30/18 3:08 AM, Peter J. Holzer wrote:
> > If I understood Mitar correctly he wants the trigger to execute in the
> > session where it was declared, not in the sessio where the statement was
> > executed that triggered the trigger.
>
> There is the additional hitch that the trigger is being declared to use a
> temporary function that is defined in an alias schema pg_temp.

Yeah, but that would be neatly solved by the magic teleportation of the
trigger execution. (I think this is actually how he got the idea that
executing the trigger in a different session would solve his problem.)

        hp

--
   _  | Peter J. Holzer    | we build much bigger, better disasters now
|_|_) |                    | because we have much more sophisticated
| |   | hjp@hjp.at         | management tools.
__/   | http://www.hjp.at/ | -- Ross Anderson <https://www.edge.org/>

Вложения

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

Предыдущее
От: Achilleas Mantzios
Дата:
Сообщение: Re: logical replication resiliency
Следующее
От: Mitar
Дата:
Сообщение: Re: In which session context is a trigger run?