I know that postgreSQL locks a row while he is doing a function because of transaction process. So I tried to trigger a function when the last row of the table was unlock.
Let's take an example:
function_one() and function_two are defined inside PG.
My application use function_one() to add data or update some stuff whatever. When it's done, the last row needed is unlock and I can do an launch an other transaction if I want. So at this point I want postgreSQL to launch function_two() when function_one() is done.
Thanks for answer(s).
EDIT : More informations
I have already tried to put a trigger on a PG catalog but it did not work because I had the information I needed thanks to a view and you can't trigger data of a view.