Re: Snapshot leak warning with lo_export in subtransaction

Heikki Linnakangas <hlinnaka@iki.fi>

From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>, Andrew B <pgsql.20.drkshadow@spamgourmet.com>
Date: 2021-11-03T10:39:18Z
Lists: pgsql-bugs
On 18/10/2021 17:40, Alvaro Herrera wrote:
> On 2021-Oct-18, Heikki Linnakangas wrote:
>> Thinking about this some more, I came up with the attached. It moves the
>> responsibility of registering the snapshot from inv_api.c to the caller.
> 
> I like this patch much better.

Pushed! Thanks for the review, and thanks for the report, Andrew.

- Heikki



Commits

  1. Fix snapshot reference leak if lo_export fails.