Re: Snapshot management, final - Mailing list pgsql-patches

From Simon Riggs
Subject Re: Snapshot management, final
Date
Msg-id 1208937092.4259.1276.camel@ebony.site
Whole thread Raw
In response to Re: Snapshot management, final  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: Snapshot management, final
List pgsql-patches
On Tue, 2008-04-22 at 18:13 -0400, Alvaro Herrera wrote:
> Simon Riggs wrote:
>
> > OK, so it can;t be copied to a longer lived memory context?
>
> CopySnapshot always copies snapshots to SnapshotContext, which is a
> context that lives until transaction end.  There's no mechanism for
> copying a snapshot into another context, because I don't see the need.
>
> If you need that ability, please explain.

No, I wish to prevent that, not enable it.

Perhaps put the TransactionId on each snapshot and then an Assert can
check it before its used.

--
  Simon Riggs
  2ndQuadrant  http://www.2ndQuadrant.com


pgsql-patches by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Snapshot management, final
Next
From: "Albe Laurenz"
Date:
Subject: Re: Improve shutdown during online backup, take 3