postgresql/src
Alvaro Herrera 1a5594b957
Call pqPipelineFlush from PQsendFlushRequest
When PQsendFlushRequest() was added by commit 69cf1d5429, we argued
against adding a PQflush() call in it[1].  This is still the right
decision: if the user wants a flush to occur, they can just call that.
However, we failed to realize that the message bytes could still be
given to the kernel for transmitting when this can be made without
blocking.  That's what pqPipelineFlush() does, and it is done for every
single other message type sent by libpq, so do that.

(When the socket is in blocking mode this may indeed block, but that's
what all the other libpq message-sending routines do, too.)

[1] https://www.postgresql.org/message-id/202106252352.5ca4byasfun5%40alvherre.pgsql

Author: Jelte Fennema-Nio <postgres@jeltef.nl>
Discussion: https://postgr.es/m/CAGECzQTxZRevRWkKodE-SnJk1Yfm4eKT+8E4Cyq3MJ9YKTnNew@mail.gmail.com
2023-11-08 16:44:08 +01:00
..
backend Use a faster hash function in resource owners. 2023-11-08 13:30:52 +02:00
bin Fix the test 003_logical_slots. 2023-11-07 11:32:33 +05:30
common Make ResourceOwners more easily extensible. 2023-11-08 13:30:50 +02:00
fe_utils Remove distprep 2023-11-06 15:18:04 +01:00
include Use a faster hash function in resource owners. 2023-11-08 13:30:52 +02:00
interfaces Call pqPipelineFlush from PQsendFlushRequest 2023-11-08 16:44:08 +01:00
makefiles Remove distprep 2023-11-06 15:18:04 +01:00
pl Make ResourceOwners more easily extensible. 2023-11-08 13:30:50 +02:00
port Remove distprep 2023-11-06 15:18:04 +01:00
template Use unnamed POSIX semaphores on Cygwin. 2023-01-06 10:33:28 +13:00
test Make ResourceOwners more easily extensible. 2023-11-08 13:30:50 +02:00
timezone Remove distprep 2023-11-06 15:18:04 +01:00
tools Make ResourceOwners more easily extensible. 2023-11-08 13:30:50 +02:00
tutorial Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.shlib Stop using "-multiply_defined suppress" on macOS. 2023-09-26 21:06:21 -04:00
meson.build Integrate pg_bsd_indent into our build/test infrastructure. 2023-02-12 12:22:21 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00