Re: Isn't HANDLE 64 bits on Win64?

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Isn't HANDLE 64 bits on Win64?
Date: 2010-11-16 10:25:02
Message-ID: AANLkTik3RdFAHZCZUag_8VNqt6W4bU_L+AaTuYz9VNTO@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Nov 16, 2010 at 10:01 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
> On Tue, Nov 16, 2010 at 01:35, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> ... and if so, isn't postmaster.c's code to transfer a HANDLE value to a
>> child process all wet?
>
> It is definitely 64-bit. sizeof(HANDLE)==8.
>
> So yes, it looks completely broken. I guess Windows doesn't actually
> *assign* you a handle larger than 2^32 until you actually ahve that
> many open handles. Typical values on my test system (win64) comes out
> at around 4000 in all tests.
>
>
>> BTW, it seems like it'd be a good thing if we had a Win64 machine in the
>> buildfarm.
>
> Yes. I actually thought we had one. Dave, weren't you going to set one up?

I was, but I saw one there so didn't bother (hamerkop). Windows
buildfarm critters can take a surprising amount of herding...

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Korotkov 2010-11-16 11:07:58 Re: Fix for seg picksplit function
Previous Message Magnus Hagander 2010-11-16 10:01:34 Re: Isn't HANDLE 64 bits on Win64?