Re: [HACKERS] 64-bit hashjoins

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: tgl(at)sss(dot)pgh(dot)pa(dot)us (Tom Lane)
Cc: riedel+(at)CMU(dot)EDU, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] 64-bit hashjoins
Date: 1999-03-25 04:40:28
Message-ID: 199903250440.XAA04005@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Walk through that with attlen = 32, attalign = 'i', and guess what:
> it applies LONGALIGN(). Which is different on Alpha than everywhere
> else, not to mention flat-out wrong for the given arguments.
>
> Erik, try changing that last LONGALIGN to INTALIGN and see if it
> works any better on the Alpha.
>
> We probably really ought to bag this entire logic and replace it
> with something like
> attalign 'c' -> no alignment
> attalign 's' -> SHORTALIGN
> attalign 'i' -> INTALIGN
> attalign 'd' -> DOUBLEALIGN
> with possibly some AssertMacro cross-checks that the given attlen
> makes sense for the attalign. But driving the logic primarily off
> attlen rather than attalign makes little sense to me.

I can agree that the type alignment is clearly wrong. I did some
cleanup of the pg_* files to they at least match, but that was obviously
not the whole picture, and this flakeyness has given us problems on
alpha.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-03-25 04:41:48 Re: [HACKERS] static oid
Previous Message Tom Lane 1999-03-25 03:59:35 Re: [HACKERS] 64-bit hashjoins