Re: [HACKERS] PostGreSQL v6.2.1 for Linux Alpha - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] PostGreSQL v6.2.1 for Linux Alpha
Date
Msg-id 199802121652.LAA27207@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] PostGreSQL v6.2.1 for Linux Alpha  ("Kenji T. Hollis" <khollis@Gawain.Houston-InterWeb.COM>)
List pgsql-hackers
>
> Bruce:
>
> > Take a look at utils/hash/hashfn.c:tag_hash.  Is there a problem in that
> > code for your platform.  Is the hash getting set, or is it falling
> > through the case statements?  This code is clearly broken for
> > sizeof(int) > 4, but I think your ints are 4, and longs are 8.  I bet
> > somewhere we are using a long where we should be using an int, and that
> > is why only your platform is seeing it.  Is this true about long vs.
> > int.  I can review our use of longs to see if there are problems.
>
> I created a small program to return the size of values.  They are:
>
> Size of short: 2
> Size of char:  1
> Size of int:   4
> Size of long:  8
>
> Does this help?

Yep.  Does anyone else run OS's with the size of long greater than int?
Does Dec Unix Alpha?  Are people running that?

--
Bruce Momjian
maillist@candle.pha.pa.us

pgsql-hackers by date:

Previous
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] PostGreSQL v6.2.1 for Linux Alpha
Next
From: "Nguyen, Thuan"
Date:
Subject: ...