Daniel Frey wrote: > I tried to understand the interaction between Pipeline Mode and > Single Row Mode / Chunked Rows Mode. It seems that it works > sometimes, but I don't get the feeling that it was deliberately > designed to work consistently It's supposed to work, and there are regression tests in src/test/modules/libpq_pipeline/libpq_pipeline.c [1] that exercise the single row mode and PQpipelineSync(). You might want to compare your code workflow with how it's done in that file, and maybe submit a bug report with your test case if the conclusion is that your code should not error out. [1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/test/modules/libpq_pipeline/libpq_pipeline.c Best regards, -- Daniel Vérité https://postgresql.verite.pro/ Twitter: @DanielVerite