Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tUt4g-003Zap-Ht for pgsql-general@arkaria.postgresql.org; Mon, 06 Jan 2025 19:47:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tUt4g-00Bsnr-1D for pgsql-general@arkaria.postgresql.org; Mon, 06 Jan 2025 19:47:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tUt4f-00Bsnj-Mz for pgsql-general@lists.postgresql.org; Mon, 06 Jan 2025 19:47:41 +0000 Received: from dverite2024.planet-service.net ([185.16.44.252] helo=mail.verite.pro) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tUt4c-000DLm-1L for pgsql-general@lists.postgresql.org; Mon, 06 Jan 2025 19:47:41 +0000 Received: by mail.verite.pro (Postfix, from userid 1000) id 9256A2C0B99; Mon, 6 Jan 2025 20:47:38 +0100 (CET) Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: Pipeline Mode vs Single Row Mode / Chunked Rows Mode From: "Daniel Verite" To: "Daniel Frey" Cc: "pgsql-general" In-Reply-To: Date: Mon, 06 Jan 2025 20:47:38 +0100 Message-Id: <68c8b6c6-ae2e-4875-a08e-e6a26a04678e@manitou-mail.org> X-Mailer: Manitou v1.7.3 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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=3Dpostgresql.git;a=3Dblob;f=3Dsrc/test= /modules/libpq_pipeline/libpq_pipeline.c Best regards, --=20 Daniel V=E9rit=E9 https://postgresql.verite.pro/ Twitter: @DanielVerite