Re: Snapshot memory management

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Snapshot memory management
Date: 2008-04-11 20:07:35
Message-ID: 20080411200735.GE4392@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera wrote:

> To implement this I propose keeping track of four additional pointers in
> SnapshotData: "next" and "prev" in the registered list, and "next" and
> "prev" in the active stack.

FWIW this does not work as proposed because one snapshot can be stored
as active more than once simultaneously.

Back to the drawing board on memory management -- so far I have merged
the two snapshot patches I had (RegisterSnapshot and ActiveSnapshot),
and the result looks reasonably good.

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kenneth Marshall 2008-04-11 21:14:54 Re: Commit fest queue
Previous Message Vladimir Volovich 2008-04-11 19:59:42 Re: question on how to correctly communicate with external library functions which return malloc()'ed strings