"Peter T. Breuer" <[EMAIL PROTECTED]> writes: > And definitely all those could be grouped if there are several to do.
Except that in the situation you're describing, there's only a hundred or two bytes of response to each query, which means that only one send() will occur anyway. (The flush call comes only when we are done responding to the current client query.) It's possible that for bulk data transmission situations we could optimize things a bit better --- in particular I've wondered whether we can reliably find out the MTU of the connection and use that as the output buffer size, instead of trusting the kernel to choose the best message boundaries --- but for the situation you're worried about there will be only one send. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly