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 20081203125232.GB3968@alvh.no-ip.org
Whole thread Raw
In response to snapshot leak and core dump with serializable transactions  ("Pavan Deolasee" <pavan.deolasee@gmail.com>)
List pgsql-hackers
Pavan Deolasee escribió:

> 2. In CommitTransaction(), I think we should call AtEOXact_Snapshot *before*
> releasing the resource owners. Otherwise, ResourceOwnerReleaseInternal
> complains about snapshot leak and then forcefully unregisters the snapshot.
> Later when AtEOXact_Snapshot is called, it again tries to unregister the
> serializable snapshot and assertion fails.

Hmm, I've been wondering if we can get away with not having
AtEOXact_Snapshot at all.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pg_get_keywords descriptions
Next
From: Alvaro Herrera
Date:
Subject: Re: maintenance memory vs autovac