Problems with the varlena patch in my module - Mailing list pgsql-hackers

From Tzahi Fadida
Subject Problems with the varlena patch in my module
Date
Msg-id 200704070300.38788.Tzahi.ML@gmail.com
Whole thread Raw
Responses Re: Problems with the varlena patch in my module  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,
I am having trouble with fixing my code for this recent varlena patch:

http://archives.postgresql.org/pgsql-committers/2007-04/msg00081.php

My module is fulldisjunctions.
I have several problems but first i wish to address the following.
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.

What can i do?
10x.

--
Regards,
        Tzahi.
--
Tzahi Fadida
Blog: http://tzahi.blogsite.org | Home Site: http://tzahi.webhop.info
WARNING TO SPAMMERS:  see at
http://members.lycos.co.uk/my2nis/spamwarning.html


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Eliminating unnecessary left joins
Next
From: Tom Lane
Date:
Subject: Re: Problems with the varlena patch in my module