Re: cluster index on a table

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

 



On Fri, Jul 17, 2009 at 1:02 AM, Scott Carey<scott@xxxxxxxxxxxxxxxxx> wrote:
> Indexes would point to a heap page for normal tables and clustered index
> pages for clustered tables.  When new versions of data come in, it may point
> to new clustered index pages, just like they currently get modified to point
> to new heap pages with new data.  A split just means more data is modified.
> And if multiple versions are still 'live' they point to multiple versions --
> just as they now have to with the ordinary heap pages.  Page splitting only
> means that there might be some copies of row versions with the same tid due
> to a split, but labeling a page with a 'creation' tid to differentiate the
> pre and post split pages removes the ambiguity.  I suppose that would
> require some page locking.


None of this makes much sense to me.

If you keep the old tuples around when you split a full page where are
you going to put the new tuples you're inserting?

Also, are you clear what a tid is? It's the block number plus the
index to the tuple entry. If you split the page and move half the
tuples to the new page they'll all have different tids.

-- 
greg
http://mit.edu/~gsstark/resume.pdf

-- 
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