Re: Snapshot management, final

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Snapshot management, final
Дата
Msg-id 20080423122436.GB4768@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Snapshot management, final  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Snapshot management, final  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-patches
Tom Lane wrote:

> The only reason we have memory contexts at all is to avoid the need to
> track individual palloc'd objects.  Since we're instituting exactly such
> tracking for snapshots, there's no value in placing them in
> general-purpose memory contexts.

FWIW I noticed yesterday after going to bed that SnapshotContext serves
no useful purpose -- we can just remove it and store snaps in
TopTransactionContext.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Snapshot management, final
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Snapshot management, final