Re: MVCC performance issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Nov 12, 2010, at 9:13 AM, Kyriacos Kyriacou wrote:

> My suggestion had just a single difference from what currently MVCC is
> doing (btw I never said that MVCC is bad). 
> 
> NOW ===> on COMMIT previous version record is expired and the 
>         new version record (created in new dynamically allocated 
>         spot, as you said) is set as "active"
> 
> MY  ===> on COMMIT, to update new version data over the same physical
> location that initial version was 
>         and release the space used to keep the new version (that was
> dynamically allocated).

But what about other transactions that can still see the old version?

You can't overwrite the old data if there are any other transactions open in the system at all.  You have to have a mechanism to keep the old copy around for a while.

> 
> The rest are all the same! I do not think that this is breaking anything
> and I still believe that this might help.
> 
> I will try to plan upgrade the soonest possible to the newest version.
> Reading few words about HOT updates 
> it seems that more or less is similar to what I have described and will
> be very helpful.
> 
> Kyriacos


-- 
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux