Re: Major problem with custom data type - Mailing list pgsql-novice

From Tom Lane
Subject Re: Major problem with custom data type
Date
Msg-id 1764.1112424190@sss.pgh.pa.us
Whole thread Raw
In response to Re: Major problem with custom data type  (Michael Fuhr <mike@fuhr.org>)
List 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 by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: Major problem with custom data type
Next
From: Kim Kohen
Date:
Subject: Re: Boolean search