Flaris Feller <flaris.feller@gmail.com> writes:
> I would like to implement transaction control in a function implemented in
> C language.
That will certainly not work unless you make it a procedure.
It'd be a good idea also to check that the CALL came from a
non-atomic context.
regards, tom lane