Re: Snapshot warning - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Snapshot warning
Date
Msg-id 20081125170139.GL4875@alvh.no-ip.org
Whole thread Raw
In response to Re: Snapshot warning  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Alvaro Herrera escribió:

> The only thing I'm now missing is SnapshotResetXmin().  It currently
> looks like this:


> After the patch we don't have any way to detect whether resowner.c has
> any snapshot still linked to.  I assume there's no objection to adding a
> new entry point in resowner.c for this.

Hmm, that doesn't readily work because there's no way to track
transaction boundaries in resource owners.  I think I'll have to add a
separate static counter in snapmgr.c that's maintained by the calls from
resowner.c.

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


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Snapshot warning
Next
From: Tom Lane
Date:
Subject: Re: Snapshot warning