Re: Add PQsendSyncMessage() to libpq - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Add PQsendSyncMessage() to libpq
Date
Msg-id ZaTjr6qpw71vS00O@paquier.xyz
Whole thread Raw
In response to Re: Add PQsendSyncMessage() to libpq  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Add PQsendSyncMessage() to libpq
Re: Add PQsendSyncMessage() to libpq
List pgsql-hackers
On Wed, Jan 10, 2024 at 03:40:36PM +0900, Michael Paquier wrote:
> Hence, as a whole, wouldn't it be more consistent if the new
> PQsendPipelineSync() and the existing PQpipelineSync() call an
> internal static routine (PQPipelineSyncInternal?) that can switch
> between both modes?  Let's just make the extra argument a boolean.

Yeah, I'll go with that after a second look.  Attached is what I am
finishing with, and I have reproduced some numbers with the pgbench
metacommand mentioned upthread, which is reeeaaally nice.

I have also made a few edits to the tests.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: pgbnech: allow to cancel queries during benchmark
Next
From: Kyotaro Horiguchi
Date:
Subject: Re: In-placre persistance change of a relation