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-22 21:45:12
Message-ID: 1208900712.4259.1268.camel@ebony.site (view raw or flat)
Thread:
Lists: pgsql-patches
On Tue, 2008-04-22 at 15:49 -0400, Alvaro Herrera wrote:

> - Three CopySnapshot call sites remain outside snapmgr.c: DoCopy() on
> copy.c, ExplainOnePlan() on explain.c and _SPI_execute_plan() on spi.c.
> They are there because they grab the current ActiveSnapshot, modify it,
> and then use the resulting snapshot.  There is no corresponding
> FreeSnapshot, because it's not needed.

Not needed? How can we be certain that the modified snapshot does not
outlive its original source?

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


In response to

Responses

pgsql-patches by date

Next:From: Alvaro HerreraDate: 2008-04-22 21:50:56
Subject: Re: Snapshot management, final
Previous:From: Alvaro HerreraDate: 2008-04-22 19:49:43
Subject: Snapshot management, final

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