Re: BUG #17074: PQsocket() truncate hande on win64

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #17074: PQsocket() truncate hande on win64
Дата
Msg-id 153442.1624889951@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #17074: PQsocket() truncate hande on win64  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
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



В списке pgsql-bugs по дате отправления: