Re: Transaction control in a C language function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Flaris Feller <flaris(dot)feller(at)gmail(dot)com>
Cc: pgsql-interfaces(at)lists(dot)postgresql(dot)org
Subject: Re: Transaction control in a C language function
Date: 2023-03-06 15:21:30
Message-ID: 3352436.1678116090@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Flaris Feller <flaris(dot)feller(at)gmail(dot)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

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Andres Freund 2023-03-06 18:15:11 Re: About default inBufSize (connection read buffer size) in libpq
Previous Message Flaris Feller 2023-03-06 10:36:32 Transaction control in a C language function