pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #17074: PQsocket() truncate hande on win64
2+ messages / 2 participants
[nested] [flat]
* BUG #17074: PQsocket() truncate hande on win64
@ 2021-06-28 12:23 PG Bug reporting form <noreply@postgresql.org>
0 siblings, 1 reply; 2+ messages in thread
From: PG Bug reporting form @ 2021-06-28 12:23 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: barlone@gmail.com
The following bug has been logged on the website:
Bug reference: 17074
Logged by: Alexey Polushin
Email address: barlone@gmail.com
PostgreSQL version: 13.3
Operating system: windows 64 bit
Description:
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #17074: PQsocket() truncate hande on win64
@ 2021-06-28 14:19 Tom Lane <tgl@sss.pgh.pa.us>
parent: PG Bug reporting form <noreply@postgresql.org>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2021-06-28 14:19 UTC (permalink / raw)
To: barlone@gmail.com; +Cc: pgsql-bugs@lists.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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-06-28 14:19 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 12:23 BUG #17074: PQsocket() truncate hande on win64 PG Bug reporting form <noreply@postgresql.org>
2021-06-28 14:19 ` Tom Lane <tgl@sss.pgh.pa.us>
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