Make libpq on windows not try to send chunks larger than 64Kb.
authorMagnus Hagander <magnus@hagander.net>
Wed, 20 Aug 2008 11:53:51 +0000 (11:53 +0000)
committerMagnus Hagander <magnus@hagander.net>
Wed, 20 Aug 2008 11:53:51 +0000 (11:53 +0000)
commit7be040bfa5cd8dcf43b573c9c023f8cf1ea9364b
treede819b83dd43784bbc1feaff496fc7f3e82a7795
parent8e0059e6237927f146a496018fd9a2d6b6b13660
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.
src/interfaces/libpq/fe-misc.c