Replace the slightly complex branching with VARSIZE_ANY, which does
exactly the same thing. Also, ditch the pointless '#ifdef PGXC'
around the function.
slot->tts_slow = slow;
}
-#ifdef PGXC
/*
* slot_deform_datarow
* Extract data from the DataRow message into Datum/isnull arrays.
if (attr->attlen == -1)
{
/* varlena */
- if (VARATT_IS_EXTERNAL(val))
- /* no alignment, since it's short by definition */
- data_length = VARSIZE_EXTERNAL(val);
- else if (VARATT_IS_SHORT(val))
- /* no alignment for short varlenas */
- data_length = VARSIZE_SHORT(val);
- else
- data_length = VARSIZE(val);
+ data_length = VARSIZE_ANY(val);
}
else if (attr->attlen == -2)
{
slot->tts_nvalid = attnum;
}
-#endif
/*
* slot_getattr