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-06T00:35:59Z
Lists: pgsql-hackers
Attachments
- v34-libpq-pipeline.patch (text/x-diff) patch v34
v33 was indeed marked a pass by cfbot. However, it only *builds* the test program, it does not *run* it. I guess we'll have to wait for the buildfarm to tell us more. In the meantime, I implemented PQsendQuery() as callable in pipeline mode; it does that by using the extended-query protocol directly rather than sending 'Q' as in non-pipeline mode. I also adjusted the docs a little bit more. That's what you see here as v34. 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. -- Álvaro Herrera Valdivia, Chile "El sabio habla porque tiene algo que decir; el tonto, porque tiene que decir algo" (Platon).
Commits
-
Add libpq pipeline mode support to pgbench
- 9aa491abbf07 14.0 landed
-
Implement pipeline mode in libpq
- acb7e4eb6b1c 14.0 landed