Problems with the varlena patch in my module

Поиск
Список
Период
Сортировка
От Tzahi Fadida
Тема Problems with the varlena patch in my module
Дата
Msg-id 200704070300.38788.Tzahi.ML@gmail.com
обсуждение исходный текст
Ответы Re: Problems with the varlena patch in my module
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Eliminating unnecessary left joins
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Problems with the varlena patch in my module