Re: Snapshot warning - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Snapshot warning
Date
Msg-id 29041.1227633336@sss.pgh.pa.us
Whole thread Raw
In response to Re: Snapshot warning  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: Snapshot warning  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> 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'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.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Snapshot warning
Next
From: Heikki Linnakangas
Date:
Subject: Re: Comments to Synchronous replication patch v3