"Cyril VELTER" <cyril.velter@metadys.com> writes:
> The server have 4G of ram. But doing a search in the source code it does not
> seem that these values are used during a copy operation.
They aren't. The "out of memory" complaint sounds more like it might be
due to corrupt data, ie the olde scenario where a variable-width field's
length word contains a ridiculously large value. I don't know how that
would lead to a winsock error, though.
regards, tom lane