Re: [BUG] lo_open() makes a warning/falls to an assertion

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: KaiGai Kohei <kaigai(at)ak(dot)jp(dot)nec(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [BUG] lo_open() makes a warning/falls to an assertion
Date: 2008-12-02 14:03:48
Message-ID: 20081202140348.GF5672@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2008-12-02 14:11:01 Re: [PATCHES] GIN improvements
Previous Message Alvaro Herrera 2008-12-02 13:52:30 Re: [BUG] lo_open() makes a warning/falls to an assertion