Re: Snapshot management, final

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Snapshot management, final
Дата
Msg-id 20080423134344.GG4768@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Snapshot management, final  (Simon Riggs <simon@2ndquadrant.com>)
Список 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                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

В списке pgsql-patches по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Snapshot management, final
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Improve shutdown during online backup, take 4