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.
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
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера