From: | Heikki Linnakangas <heikki(at)enterprisedb(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Gregory Stark <stark(at)enterprisedb(dot)com>, pgsql-hackers(at)postgresql(dot)org, mkoi-pg(at)aon(dot)at |
Subject: | Re: Getting rid of cmin and cmax |
Date: | 2006-09-19 17:55:04 |
Message-ID: | 45102EF8.3000701@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane kirjoitti:
> Gregory Stark <stark(at)enterprisedb(dot)com> writes:
>> Frankly the whole phantom commandid thing sounds more complicated.
>> You *still*
>> need a local state data structure that *still* has to spill to disk
>> and now
>> it's much harder to characterize how large it will grow since it
>> depends on
>> arbitrary combinations of cmin and cmax.
>
> Yeah, but it requires only one entry when a command processes
> arbitrarily large numbers of tuples, so in practice it's not going to
> need to spill to disk. What Heikki wants to do will require an entry in
> local memory for *each tuple* modified by a transaction. That will ruin
> performance on a regular basis.
As I tried to say in the first post, I believe we can actually get away
without an entry in local memory in typical scenarios, including bulk
data loads. Bulk updates are probably the biggest problem, but I think
we could handle even them just fine with the right data structure.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Marc Evans | 2006-09-19 17:56:47 | Re: Odd behavior observed |
Previous Message | Tom Lane | 2006-09-19 17:39:58 | Ready for 8.2beta1? |