Tzahi Fadida <[EMAIL PROTECTED]> writes:
> This is an excerpt from my code:
> newtset->tids = (bytea *) fastgetattr(tupleTSet, LABELS_ALIGNED, 
> fctx->tupleSetDesc, &isnull);

> It seems that for an empty bytea (only the size of the header), i get that 
> VARSIZE(newtset->tids)==534765440
> instead of VARHDRSZ.

That code has always been broken, you just failed to exercise the
problem before.  There needs to be a detoasting call there, not
merely a cast.  DatumGetByteaP() would probably be appropriate.

                        regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to [EMAIL PROTECTED] so that your
       message can get through to the mailing list cleanly

Reply via email to