pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Add PQsendFlushRequest to libpq 2+ messages / 1 participants [nested] [flat]
* pgsql: Add PQsendFlushRequest to libpq @ 2021-06-29 18:38 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2021-06-29 18:38 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add PQsendFlushRequest to libpq This new libpq function allows the application to send an 'H' message, which instructs the server to flush its outgoing buffer. This hasn't been needed so far because the Sync message already requests a buffer; and I failed to realize that this was needed in pipeline mode because PQpipelineSync also causes the buffer to be flushed. However, sometimes it is useful to request a flush without establishing a synchronization point. Backpatch to 14, where pipeline mode was introduced in libpq. Reported-by: Boris Kolpackov <boris@codesynthesis.com> Author: Álvaro Herrera <alvherre@alvh.no-ip.org> Discussion: https://postgr.es/m/202106252350.t76x73nt643j@alvherre.pgsql Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/a7192326c74da417d024a189da4d33c1bf1b40b6 Modified Files -------------- doc/src/sgml/libpq.sgml | 33 +++++++++++++++++++++++++++++++-- src/interfaces/libpq/exports.txt | 3 ++- src/interfaces/libpq/fe-exec.c | 36 ++++++++++++++++++++++++++++++++++++ src/interfaces/libpq/libpq-fe.h | 1 + 4 files changed, 70 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Add PQsendFlushRequest to libpq @ 2021-06-29 18:38 Alvaro Herrera <alvherre@alvh.no-ip.org> 0 siblings, 0 replies; 2+ messages in thread From: Alvaro Herrera @ 2021-06-29 18:38 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Add PQsendFlushRequest to libpq This new libpq function allows the application to send an 'H' message, which instructs the server to flush its outgoing buffer. This hasn't been needed so far because the Sync message already requests a buffer; and I failed to realize that this was needed in pipeline mode because PQpipelineSync also causes the buffer to be flushed. However, sometimes it is useful to request a flush without establishing a synchronization point. Backpatch to 14, where pipeline mode was introduced in libpq. Reported-by: Boris Kolpackov <boris@codesynthesis.com> Author: Álvaro Herrera <alvherre@alvh.no-ip.org> Discussion: https://postgr.es/m/202106252350.t76x73nt643j@alvherre.pgsql Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/69cf1d5429d48d030d71d5dd4931084d422413cb Modified Files -------------- doc/src/sgml/libpq.sgml | 33 +++++++++++++++++++++++++++++++-- src/interfaces/libpq/exports.txt | 3 ++- src/interfaces/libpq/fe-exec.c | 36 ++++++++++++++++++++++++++++++++++++ src/interfaces/libpq/libpq-fe.h | 1 + 4 files changed, 70 insertions(+), 3 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-06-29 18:38 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-06-29 18:38 pgsql: Add PQsendFlushRequest to libpq Alvaro Herrera <alvherre@alvh.no-ip.org> 2021-06-29 18:38 pgsql: Add PQsendFlushRequest to libpq Alvaro Herrera <alvherre@alvh.no-ip.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox