Re: Major problem with custom data type

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: Morgan Kita <mkita(at)verseon(dot)com>, pgsql-novice(at)postgresql(dot)org
Subject: Re: Major problem with custom data type
Date: 2005-04-02 06:43:10
Message-ID: 1764.1112424190@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Michael Fuhr <mike(at)fuhr(dot)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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Kim Kohen 2005-04-02 09:35:40 Re: Boolean search
Previous Message Michael Fuhr 2005-04-02 06:29:11 Re: Major problem with custom data type