Re: CLUSTER patch - Mailing list pgsql-patches

From Tom Lane
Subject Re: CLUSTER patch
Date
Msg-id 20125.1026672410@sss.pgh.pa.us
Whole thread Raw
In response to Re: CLUSTER patch  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: CLUSTER patch
List pgsql-patches
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> This case is actually more complicated because after the swap, pg_class
> still says thisxactonly but the relfilenode points to non-thisactonly
> buffers, and via versa.

pg_class doesn't say anything (if it did, we could make relcache.c
track it).

But yes, the problem is that myxactonly has to line up with where the
buffers are stored.  As I mentioned, I think it would work to flush out
all buffers for both rels before doing the swap.

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: CLUSTER patch
Next
From: Alvaro Herrera
Date:
Subject: Re: CLUSTER patch