Re: snapshot leak and core dump with serializable transactions - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: snapshot leak and core dump with serializable transactions
Date
Msg-id 20081203193218.GJ3968@alvh.no-ip.org
Whole thread Raw
In response to Re: snapshot leak and core dump with serializable transactions  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
Responses Re: snapshot leak and core dump with serializable transactions  (Alvaro Herrera <alvherre@commandprompt.com>)
List 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 by date:

Previous
From: Emmanuel Cecchet
Date:
Subject: Re: Transactions and temp tables
Next
From: Alvaro Herrera
Date:
Subject: Re: snapshot leak and core dump with serializable transactions