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

Re: Snapshot management, final

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Simon Riggs <simon(at)2ndquadrant(dot)com>
Cc: Pg Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Snapshot management, final
Date: 2008-04-23 13:43:44
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
Simon Riggs wrote:

> Forgive me for being dense, but what is there to stop you using a
> CopySnapshot in TopMemoryContext? If you did, there would be no way to
> free it, nor would we notice it had been done, AFAICS. Not anything I'm
> thinking about doing, though.

Well, TopMemoryContext is no good because we want to free snapshots in a
fell swoop at transaction abort.  TopTransactionContext would be OK, as
I just said in the parallel subthread.

Alvaro Herrera                      
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

pgsql-patches by date

Next:From: Magnus HaganderDate: 2008-04-23 13:45:40
Subject: Re: Improve shutdown during online backup, take 4
Previous:From: Simon RiggsDate: 2008-04-23 13:25:15
Subject: Re: Snapshot management, final

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