Problems with the varlena patch in my module

From: Tzahi Fadida <Tzahi(dot)ML(at)gmail(dot)com>
To: "PostgreSQL Development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Problems with the varlena patch in my module
Date: 2007-04-07 00:00:38
Message-ID: 200704070300.38788.Tzahi.ML@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2007-04-07 01:08:34 Re: Problems with the varlena patch in my module
Previous Message Tom Lane 2007-04-06 23:38:39 Re: Eliminating unnecessary left joins