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 <postgres@jeltef.nl>)
Ответы Re: Add Pipelining support in psql
Список pgsql-hackers
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 по дате отправления: