public inbox for [email protected]  
help / color / mirror / Atom feed
From: Flaris Feller <[email protected]>
To: Tom Lane <[email protected]>
Cc: [email protected]
Subject: Re: Transaction control in a C language function
Date: Mon, 6 Mar 2023 20:33:45 -0300
Message-ID: <CANNsrHtZwfrsrz7z6Y7Nhe+DmST_QmeJ=MWAZpMxt8+iCPHGAA@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CANNsrHt-3wC-nGG_owzfKfx+N-sHWFuJQ=QEivGrXGK2_ne0xA@mail.gmail.com>
	<[email protected]>

Hello Tom,
You are absolutely right, I was calling it from a function instead of a
procedure.
The documentation should mention that.
Thanks for your clarification.
Regards,
Flaris.

Em seg., 6 de mar. de 2023 às 12:21, Tom Lane <[email protected]> escreveu:

> Flaris Feller <[email protected]> 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
>


-- 
Flaris Roland Feller
https://www.linkedin.com/in/flarisfeller


view thread (3+ messages)

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Transaction control in a C language function
  In-Reply-To: <CANNsrHtZwfrsrz7z6Y7Nhe+DmST_QmeJ=MWAZpMxt8+iCPHGAA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox