pgrx icon indicating copy to clipboard operation
pgrx copied to clipboard

Allow returning values from a transaction in a bgworker

Open yrashk opened this issue 3 years ago • 0 comments

In some scenarios, it'd be beneficial to be able to return a result from a successfully executed transactio.

To allow this, BackgroundWorker::transaction has been extended to return a return value from the provided function. It's backwards compatible, as previously these functions were required to return the unit, and it transaction returned unit as well.

yrashk avatar Sep 25 '22 16:09 yrashk