Heikki Linnakangas <hlinnaka(at)iki(dot)fi> writes:
> I was able to reproduce huge gains from this, after I introduced an
> artificial latency to all network packets with:
> tc qdisc add dev eth2 root netem delay 100ms
> With that, and with the client on different host so that the traffic
> goes through that high-latency network, I saw over 10x difference with
> the same psql test you ran.
> Committed, thanks!
Why does the committed patch do getsockopt() on server_fd rather than
port->sock? This seems at best confusing and at worst wrong.
regards, tom lane