Re: Isn't HANDLE 64 bits on Win64?

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

Magnus Hagander <magnus(at)hagander(dot)net> writes:
> On Tue, Nov 16, 2010 at 16:23, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> What's not clear to me is whether the section title means that only
>> certain handles have this guarantee, and if so whether we have to worry
>> about running into ones that don't.

> I think it is pretty clear it does - the section has a list of
> different handles at the bottom. What we're using is a File Mapping
> Object, which is not on that list. And which is, AFAICT, not a user or
> gdi handle.

> That doesn't mean it's not guaranteed to be in the 32-bit space, but
> I'm pretty sure that specific page doesn't guarantee it.

Well, the patch as-applied is fine with me. I just wanted to be sure
we'd considered the alternatives, especially in view of the fact that
we have not seen any clear failures of the previous coding.

The reason this came to mind was
http://archives.postgresql.org/pgsql-admin/2010-11/msg00128.php
which looks for all the world like a handle transmission failure
--- but that person claims to be running Win32, so unless he's
wrong, this particular issue doesn't explain his problem.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2010-11-16 15:44:12 Re: Isn't HANDLE 64 bits on Win64?
Previous Message Magnus Hagander 2010-11-16 15:29:37 Re: Isn't HANDLE 64 bits on Win64?