From: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>, Teodor Sigaev <teodor(at)stack(dot)net> |
Subject: | Re: contrib/ltree for 7.2 or 7.3 ? |
Date: | 2002-08-06 08:54:35 |
Message-ID: | Pine.GSO.4.44.0208061153130.12192-100000@ra.sai.msu.su |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, 6 Aug 2002, Bruce Momjian wrote:
>
> Folks, has this been fixed?
>
Bruce, you already did apply patches which fixed this issue :-)
> ---------------------------------------------------------------------------
>
> Tom Lane wrote:
> > > Oleg Bartunov wrote:
> > >> One known issue: It'll not works with 64-bit OS. We'll certainly fix this
> > >> but will appreciate if somebody with access to 64-bit machine could help us.
> >
> > Actually, it dumps core instantly on 32-bit machines too, if they are
> > pickier about alignment than Intel hardware is. You can't map
> > structures onto char[] arrays that start at odd byte offsets and not
> > expect trouble.
> >
> > I also do not trust macros like this:
> >
> > typedef struct {
> > int32 len;
> > uint16 numlevel;
> > char data[1];
> > } ltree;
> >
> > #define LTREE_HDRSIZE ( sizeof(int32) + sizeof(uint16) )
> >
> > because they take no account of the possibility of padding between fields.
> >
> > regards, tom lane
> >
>
>
Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2002-08-06 09:01:33 | CVS broken again? |
Previous Message | Karel Zak | 2002-08-06 08:49:59 | Re: SQL99 CONVERT() function |