Skip site navigation (1) Skip section navigation (2)

Re: Snapshot management, final

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
Cc: Pg Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Snapshot management, final
Date: 2008-04-23 07:51:32
Message-ID: 1208937092.4259.1276.camel@ebony.site (view raw or flat)
Thread:
Lists: 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


In response to

Responses

pgsql-patches by date

Next:From: Albe LaurenzDate: 2008-04-23 08:40:29
Subject: Re: Improve shutdown during online backup, take 3
Previous:From: Alvaro HerreraDate: 2008-04-23 01:15:49
Subject: Re: Snapshot management, final

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group