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