Re: snapshot leak and core dump with serializable transactions

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: snapshot leak and core dump with serializable transactions
Дата
Msg-id 20081203193218.GJ3968@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: snapshot leak and core dump with serializable transactions  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
Ответы Re: snapshot leak and core dump with serializable transactions  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Pavan Deolasee escribió:
> On Wed, Dec 3, 2008 at 7:42 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
> > That's absolutely wrong.  It'll complain about whatever snapshots the
> > owners still hold.
>
> You must be right; I don't understand that code much. But don't we expect
> the snapshots to be cleanly released at that point and if not we flash
> warnings anyways ? AtEOXact_Snapshot only unregisters the serialized
> snapshot which otherwise release resource owner will complain about.

Yeah, we need two "at-commit" routines, one of which needs to be called
early.  I'm prepping a patch.

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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Emmanuel Cecchet
Дата:
Сообщение: Re: Transactions and temp tables
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: snapshot leak and core dump with serializable transactions