Re: [HACKERS] PATCH: Batch/pipelining support for libpq
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: pgsql-hackers@lists.postgresql.org, Craig Ringer <craig.ringer@enterprisedb.com>, Matthieu Garrigues <matthieu.garrigues@gmail.com>, Zhihong Yu <zyu@yugabyte.com>, Ibrar Ahmed <ibrar.ahmad@gmail.com>
Date: 2021-03-11T16:00:13Z
Lists: pgsql-hackers
Attachments
- v35-libpq-pipeline.patch (text/x-diff) patch v35
On 2021-Mar-05, Alvaro Herrera wrote: > I'll take the weekend to think about the issue with conn->last_query and > conn->queryclass that I mentioned yesterday; other than that detail my > feeling is that this is committable, so I'll be looking at getting this > pushed early next weeks, barring opinions from others. It took longer than I expected, but it works well now. conn->last_query is gone; all commands, both in pipeline mode and in no-pipeline mode, go via the command queue. This is cleaner all around; we don't have to have the pipeline code "cheat" so that it looks like each command is "last" at each point. I have not absorbed David Johnston's latest doc suggestions yet. I'm going to give the code a last renaming pass, on the idea that the command queue is no longer exclusively for the pipeline mode, so some things need less exclusionary names. But functionality wise AFAICS this patch has the shape it ought to have. -- Álvaro Herrera 39°49'30"S 73°17'W
Commits
-
Add libpq pipeline mode support to pgbench
- 9aa491abbf07 14.0 landed
-
Implement pipeline mode in libpq
- acb7e4eb6b1c 14.0 landed