Re: [HACKERS] Macro From Hell
David Hartwig <daveh@insightdist.com>
From: David Hartwig <daveh@insightdist.com>
To: Bruce Momjian <maillist@candle.pha.pa.us>
Cc: hackers@postgreSQL.org
Date: 1998-09-08T17:13:48Z
Lists: pgsql-hackers
Bruce Momjian wrote:
> This was the fix. In the code it was:
>
> ((attlen) == sizeof(char)) ? \
> ( \
> (long)(cur_offset) \
> ) \
>
Needs one more tweak.
In backend/commands/copy.c May I suggest at line 664:
ptr = (char *)att_align(ptr, attr[i]->attlen, attr[i]->attalign)
^^^^^^^^