pgsql: Don't set SO_SNDBUF on recent Windows versions that have a bigge - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Don't set SO_SNDBUF on recent Windows versions that have a bigge
Date
Msg-id E1ZC6Do-0002Ui-Fm@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Don't set SO_SNDBUF on recent Windows versions that have a bigger default.

It's unnecessary to set it if the default is higher in the first place.
Furthermore, setting SO_SNDBUF disables the so-called "dynamic send
buffering" feature, which hurts performance further. This can be seen
especially when the network between the client and the server has high
latency.

Chen Huajun

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4f33621f3f50286e607a3cdcc1f7a7d51075af95

Modified Files
--------------
src/backend/libpq/pqcomm.c |   44 ++++++++++++++++++++++++++++++++++++++------
1 file changed, 38 insertions(+), 6 deletions(-)


pgsql-committers by date:

Previous
From: Fujii Masao
Date:
Subject: pgsql: Remove incorrect warning from pg_archivecleanup document.
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Call getsockopt() on the correct socket.