Re: [BUG] lo_open() makes a warning/falls to an assertion - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [BUG] lo_open() makes a warning/falls to an assertion
Date
Msg-id 20081202140348.GF5672@alvh.no-ip.org
Whole thread Raw
In response to Re: [BUG] lo_open() makes a warning/falls to an assertion  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: [BUG] lo_open() makes a warning/falls to an assertion  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: [BUG] lo_open() makes a warning/falls to an assertion  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Alvaro Herrera wrote:
> KaiGai Kohei wrote:
> 
> > -- (3) tries to open it with writable mode under transaction block.
> > postgres=# BEGIN;
> > BEGIN
> > postgres=# SELECT lo_open(24576, x'40000'::int);
> > WARNING:  Snapshot reference leak: Snapshot 0x96b8488 still referenced

> I'm investigating now.  Thanks for the report.

I think the solution is to have each large object have its own
ResourceOwner, and store the snapshot in it.  Otherwise the snapshot is
left in the calling query's resowner, which is not good.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: [BUG] lo_open() makes a warning/falls to an assertion
Next
From: Heikki Linnakangas
Date:
Subject: Re: [PATCHES] GIN improvements