Re: Snapshot warning - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Snapshot warning
Date
Msg-id 4731.1227641821@sss.pgh.pa.us
Whole thread Raw
In response to Re: Snapshot warning  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Tom Lane escribi�:
>> Hmm, that's a bit problematic because resowner.c doesn't have any global
>> notion of what resource owners exist.  I think you still need to have
>> snapmgr.c maintain a list of all known snapshots.  resowner.c can only
>> help you with tracking reference counts for particular snapshots.

> A counter seems to suffice.  Patch attached.

Looks sane to me.  The list solution might be needed later, if we wanted
to get smarter about advancing our xmin after deleting only some of our
snapshots ... but this'll do for now.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Snapshot warning
Next
From: Tom Lane
Date:
Subject: Re: Exporting PGINTERVALSTYLE prevents access to older server versions