Re: VARSIZE - why omit VARLEN?

Поиск
Список
Период
Сортировка
От Andrew Chernow
Тема Re: VARSIZE - why omit VARLEN?
Дата
Msg-id 49733A35.8060101@esilo.com
обсуждение исходный текст
Ответ на Re: VARSIZE - why omit VARLEN?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Andrew Chernow <ac@esilo.com> writes:
>> Any objections adding the below to postgres.h?
>> #define VARLEN(PTR) (VARSIZE(PTR) - VARHDRSZ)
> 
> For the most part, you should probably be using VARSIZE_ANY_EXHDR
> anyplace that that might be a good idea.
> 
>             regards, tom lane
> 
> 

Thanks, that will do it.  I didn't know that macro existed.  I missed its 
addition in 8.3.  sorry.

-- 
Andrew Chernow
eSilo, LLC
every bit counts
http://www.esilo.com/


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Brendan Jurd"
Дата:
Сообщение: Re: Meridiem markers (was: [BUGS] Incorrect "invalid AM/PM string" error from to_timestamp)
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Fixes for compiler warnings