Thread: pgsql: Make libpq on windows not try to send chunks larger than 64Kb.

pgsql: Make libpq on windows not try to send chunks larger than 64Kb.

From
mha@postgresql.org (Magnus Hagander)
Date:
Log Message:
-----------
Make libpq on windows not try to send chunks larger than 64Kb.

Per Microsoft knowledge base article Q201213, early versions of
Windows fail when we do this. Later versions of Windows appear
to have a higher limit than 64Kb, but do still fail on large
sends, so we unconditionally limit it for all versions.

Patch from Tom Lane.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
    pgsql/src/interfaces/libpq:
        fe-misc.c (r1.133 -> r1.133.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-misc.c?r1=1.133&r2=1.133.2.1)