execute trigger after another one

Поиск
Список
Период
Сортировка
От Carlos Carcamo
Тема execute trigger after another one
Дата
Msg-id CADpTsTb_LCBvz7C9K=RUUzLEMtm3HnM_iPMtyc3VxTDzQ24FGg@mail.gmail.com
обсуждение исходный текст
Ответы Re: execute trigger after another one  (David G Johnston <david.g.johnston@gmail.com>)
Список pgsql-general
Hello list, hope you're well.

I need some help with postgres.

I have two triggers that are executed after insert, update and delete.
One trigger is with plpgsql language and the other one is with
pl/python, the first one just update some tables and last one calls a
*.sh that is executed to perform some stuff, both triggers works
great, the problem is that I need that the triggers execute in order,
first the plpgsql and then the plpython one.

I read about order of execution of triggers, is supposed that postgres
executes triggers in alphabetical order, so I called the plpgsql
a_trigger and the second one b_trigger (as an example), but it seems
that the second one always executes first.

Is there any way to make triggers execute in a specific order?

Thanks in advance.
--
"El desarrollo no es material es un estado de conciencia mental"


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

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: Vacuum freeze
Следующее
От: David G Johnston
Дата:
Сообщение: Re: execute trigger after another one