execute trigger after another one - Mailing list pgsql-general

From Carlos Carcamo
Subject execute trigger after another one
Date
Msg-id CADpTsTb_LCBvz7C9K=RUUzLEMtm3HnM_iPMtyc3VxTDzQ24FGg@mail.gmail.com
Whole thread Raw
Responses Re: execute trigger after another one
List 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 by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Vacuum freeze
Next
From: David G Johnston
Date:
Subject: Re: execute trigger after another one