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