Re: Add Pipelining support in psql
От
Michael Paquier
Тема
Re: Add Pipelining support in psql
Дата
Msg-id
Z9or5qJwixm_PDC-@paquier.xyz
Ответ на
Re: Add Pipelining support in psql (Jelte Fennema-Nio)
Список
Дерево обсуждения
pipelining in psql, commit 41625ab Noah Misch <noah@leadboat.com>
Re: pipelining in psql, commit 41625ab Jelte Fennema-Nio <postgres@jeltef.nl>
Re: pipelining in psql, commit 41625ab Michael Paquier <michael@paquier.xyz>
Re: pipelining in psql, commit 41625ab Noah Misch <noah@leadboat.com>
Re: pipelining in psql, commit 41625ab Michael Paquier <michael@paquier.xyz>
On Tue, Mar 18, 2025 at 10:27:38AM +0100, Jelte Fennema-Nio wrote: > One thing that comes to mind that I think would be quite useful and > pretty easy to implement if we have this functionality within a > pipeline: An \extended command. That puts psql in "extended protocol > mode" (without enabling pipelining). In "extended protocol mode" all > queries would automatically be sent using PQsendQueryParams. That > would remove the need to use \bind anymore outside of a pipeline > either. How does that help when passing parameter values? \bind is here to be able to pass down parameter values to queries that are prepared, so we cannot bypass it as the parameter values need to be passed to the \bind meta-command itself. Perhaps an \extended command that behaves outside a pipeline makes sense to force the use of queries without parameters to use the extended mode, but I cannot get much excited about the concept knowing all the meta-commands we have now (not talking about the pipeline part, which is different, as we can treat queries in batches). -- Michael
В списке pgsql-hackers по дате отправления
От: Hayato Kuroda (Fujitsu)
Дата: