Re: Phantom Command ID

From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Phantom Command ID
Date: 2006-09-21 09:46:22
Message-ID: 45125F6E.2010108@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> Heikki Linnakangas <heikki(at)enterprisedb(dot)com> writes:
>
>> A big question is, do we need to implement spilling to disk?
>>
>
> My thought is no, at least not in the first cut ... this is something
> that can be added later if it proves critical, and right at the moment
> my guess is that it never will. The data structure design sounds fine.
>

I thought so too.

We could also limit the size of the hash table, which takes up most of
the memory, and only keep the latest phantom cids there. Presumably, if
current command id is 1000, you're not likely to set cmax to 500 on any
tuple in that transaction anymore.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2006-09-21 11:00:56 Re: Phantom Command ID
Previous Message Csaba Nagy 2006-09-21 09:07:50 Re: [HACKERS] Incrementally Updated Backup