Transaction manipulation commands in user defined c functions? - Mailing list pgsql-novice

From Michael Hadjivassiliou
Subject Transaction manipulation commands in user defined c functions?
Date
Msg-id AANLkTimOlUYHRjJGp8jPk0UiBOAKgtMgPbqREUt-CiTh@mail.gmail.com
Whole thread Raw
Responses Re: Transaction manipulation commands in user defined c functions?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
I've been searching for a way to do transaction blocks and savepoints within a user defined c function. Apparently the docs state that if an SPI function throws an error, control goes out of the function and the current transaction is rolled back, yet it hints that you can do subtransactions within a c function.

a. Is that possible?
b. I couldn't find any doc or reference to such a feature.

Has anyone got an example doing this? Can you please just point me to the right direction?

Michael.
#avg_ls_inline_popup { position:absolute; z-index:9999; padding: 0px 0px; margin-left: 0px; margin-top: 0px; width: 240px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 13px;}

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: pl/pgsql in a script?
Next
From: "coviolo@libero.it"
Date:
Subject: problem with variable