BUG #17074: PQsocket() truncate hande on win64 - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #17074: PQsocket() truncate hande on win64
Date
Msg-id 17074-b064bbbb12dc6cf6@postgresql.org
Whole thread Raw
Responses Re: BUG #17074: PQsocket() truncate hande on win64  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
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.


pgsql-bugs by date:

Previous
From: Amit Kapila
Date:
Subject: Re: BUG #17072: Assert for clogGroupNext failed due to a race condition in TransactionGroupUpdateXidStatus()
Next
From: Tom Lane
Date:
Subject: Re: BUG #17074: PQsocket() truncate hande on win64