Re: remove flatfiles.c - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: remove flatfiles.c
Date
Msg-id 4A9E6BB9020000250002A8D6@gw.wicourts.gov
Whole thread Raw
In response to Re: remove flatfiles.c  (Greg Stark <gsstark@mit.edu>)
Responses Re: remove flatfiles.c
List pgsql-hackers
Greg Stark <gsstark@mit.edu> wrote:
> I don't think we want to cluster on the primary key. I think we just
> want to rewrite the table keeping the same physical ordering.
Well if that's what you want to do, couldn't you do something like?:
Lock the table.
Prop all indexes
Pass the heap with two pointers, one to the first available empty
space and one to the first non-dead row past that, and move inside the
existing file.
Rebuild the indexes.
Release the lock.
-Kevin


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: remove flatfiles.c
Next
From: Josh Berkus
Date:
Subject: Re: remove flatfiles.c