Re: Isn't HANDLE 64 bits on Win64? - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: Isn't HANDLE 64 bits on Win64?
Date
Msg-id AANLkTi=KHxn_Ty7vqVMtCjtvG39N8y=+=js84wnqOogw@mail.gmail.com
Whole thread Raw
In response to Isn't HANDLE 64 bits on Win64?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Isn't HANDLE 64 bits on Win64?
Re: Isn't HANDLE 64 bits on Win64?
List pgsql-hackers
On Tue, Nov 16, 2010 at 01:35, Tom Lane <tgl@sss.pgh.pa.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?

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/


pgsql-hackers by date:

Previous
From: Shigeru HANADA
Date:
Subject: Re: SQL/MED estimated time of arrival?
Next
From: Dave Page
Date:
Subject: Re: Isn't HANDLE 64 bits on Win64?