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

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [BUG] lo_open() makes a warning/falls to an assertion
Дата
Msg-id 20081202140348.GF5672@alvh.no-ip.org
обсуждение исходный текст
Ответ на 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  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: [BUG] lo_open() makes a warning/falls to an assertion  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [BUG] lo_open() makes a warning/falls to an assertion
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: [PATCHES] GIN improvements