postgresql/src/interfaces/libpq
Alvaro Herrera 42f8326851
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
..
po Translation updates 2023-11-06 13:10:09 +01:00
t Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
test meson: add install-{quiet, world} targets 2023-03-23 21:20:18 -07:00
.gitignore Run tap tests in src/interfaces/libpq. 2022-02-26 16:51:47 -08:00
exports.txt De-Revert "Add support for Kerberos credential delegation" 2023-04-13 08:55:07 -04:00
fe-auth-sasl.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
fe-auth-scram.c Make SCRAM iteration count configurable 2023-03-27 09:46:29 +02:00
fe-auth.c Include <limits.h> in fe-auth.c, to get CHAR_BIT reliably. 2023-07-17 16:54:54 -04:00
fe-auth.h Make SCRAM iteration count configurable 2023-03-27 09:46:29 +02:00
fe-connect.c Spell the values of libpq's gssdelegation parameter as "0" and "1". 2023-05-22 11:50:27 -04:00
fe-exec.c Call pqPipelineFlush from PQsendFlushRequest 2023-11-08 16:44:08 +01:00
fe-gssapi-common.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
fe-gssapi-common.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
fe-lobj.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
fe-misc.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
fe-print.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
fe-protocol3.c libpq: Fix up some error message coding 2023-06-15 13:54:37 +02:00
fe-secure-common.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
fe-secure-common.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
fe-secure-gssapi.c Spell the values of libpq's gssdelegation parameter as "0" and "1". 2023-05-22 11:50:27 -04:00
fe-secure-openssl.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
fe-secure.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
fe-trace.c Fix various typos and incorrect/outdated name references 2023-04-19 13:50:33 +12:00
legacy-pqsignal.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
libpq-events.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
libpq-events.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
libpq-fe.h De-Revert "Add support for Kerberos credential delegation" 2023-04-13 08:55:07 -04:00
libpq-int.h Spell the values of libpq's gssdelegation parameter as "0" and "1". 2023-05-22 11:50:27 -04:00
Makefile pkg-config Requires.private entries should be comma-separated 2023-03-16 07:37:38 +01:00
meson.build Support connection load balancing in libpq 2023-03-29 21:53:38 +02:00
nls.mk libpq: Add missing gettext trigger 2023-06-16 10:53:22 +02:00
pg_service.conf.sample Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
pqexpbuffer.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pqexpbuffer.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
pthread-win32.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
README Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
win32.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
win32.h Recognize network-failure errnos as indicating hard connection loss. 2020-10-10 13:28:12 -04:00

src/interfaces/libpq/README

This directory contains the C version of Libpq, the POSTGRES frontend library.