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

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

Done.

--
Bruce Momjian                          |  830 Blythe Avenue
maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
  +  If your life is a hard drive,     |  (610) 353-9879(w)
  +  Christ can be your backup.        |  (610) 853-3000(h)

pgsql-hackers by date:

Previous
From: David Hartwig
Date:
Subject: Re: [HACKERS] index fix report
Next
From: Vadim Mikheev
Date:
Subject: Indixing problems...