pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: barlone@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17074: PQsocket() truncate hande on win64
Date: Mon, 28 Jun 2021 10:19:11 -0400
Message-ID: <153442.1624889951@sss.pgh.pa.us> (raw)
In-Reply-To: <17074-b064bbbb12dc6cf6@postgresql.org>
References: <17074-b064bbbb12dc6cf6@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> Function PQsocket from libpq returns int. But on win64, int type has 32
> bits, and socket handle has 64 bits. 
> PQsocket must return а different type, may be ptrdiff_t.

We can't just redefine the result type of PQsocket without
causing API/ABI breakage everywhere.

Perhaps it would be worth inventing a Windows-only function that
returns a connection's socket handle.  There hasn't been much
demand for that though.

			regards, tom lane





view thread (2+ messages)

Message-ID: <153442.1624889951@sss.pgh.pa.us>
Permalink:  ../153442.1624889951@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/153442.1624889951@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, barlone@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17074: PQsocket() truncate hande on win64
  In-Reply-To: <153442.1624889951@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox