Re: [HACKERS] Macro From Hell - Mailing list pgsql-hackers

From David Hartwig
Subject Re: [HACKERS] Macro From Hell
Date
Msg-id 35F565CC.FF811E4F@insightdist.com
Whole thread Raw
In response to Re: [HACKERS] Macro From Hell  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [HACKERS] Macro From Hell  (Bruce Momjian <maillist@candle.pha.pa.us>)
List 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)
         ^^^^^^^^


pgsql-hackers by date:

Previous
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] Problem with the constraints test and PRIMARY KEY on UnixWare 7.
Next
From: Paul A Vixie
Date:
Subject: Re: CIDR/IP types. Was: [GENERAL] big numbers