BUG #17074: PQsocket() truncate hande on win64

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: barlone(at)gmail(dot)com
Subject: BUG #17074: PQsocket() truncate hande on win64
Date: 2021-06-28 12:23:07
Message-ID: 17074-b064bbbb12dc6cf6@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 17074
Logged by: Alexey Polushin
Email address: barlone(at)gmail(dot)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.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2021-06-28 14:19:11 Re: BUG #17074: PQsocket() truncate hande on win64
Previous Message Amit Kapila 2021-06-28 08:38:14 Re: BUG #17072: Assert for clogGroupNext failed due to a race condition in TransactionGroupUpdateXidStatus()