Alex Pilosov <alex(at)pilosoft(dot)com> writes:> So, is there some particular reason conn->sock is not exposed?
Apparently you didn't notice PQsocket() yet ...
regards, tom lane