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