Re: I: About "Our CLUSTER implementation is pessimal" patch

Leonardo Francalanci <m_lists@yahoo.it>

From: Leonardo F <m_lists@yahoo.it>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: pgsql-hackers@postgresql.org
Date: 2010-02-10T14:02:46Z
Lists: pgsql-hackers
I think I've found the problem:

tuple->t_data wasn't at HEAPTUPLESIZE distance from tuple.
I guess the code makes that assumption somewhere, so I had
to do:

tuple->t_data = (HeapTupleHeader) ((char *) tuple + 
                                                             HEAPTUPLESIZE);

Now that test works! Hope I don't find any more problems...



Leonardo