Re: Major problem with custom data type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Major problem with custom data type
Дата
Msg-id 1764.1112424190@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Major problem with custom data type  (Michael Fuhr <mike@fuhr.org>)
Список pgsql-novice
Michael Fuhr <mike@fuhr.org> writes:
> Do you recommend always using the macros, even if the data is a
> structure?  For example, I've done things like the following:
> ...
> I see similar code in arrayfuncs.c.

Well, the arrayfuncs.c code falls in the category of "stuff we'll
have to fix when it breaks".  That doesn't extend to user-written
C functions; you're on your own if you don't follow best practices.

In any case I'm quite sure that noplace in the arrayfuncs code hardwires
"4" for VARHDRSZ ...

            regards, tom lane

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Major problem with custom data type
Следующее
От: Kim Kohen
Дата:
Сообщение: Re: Boolean search