Re: Add Pipelining support in psql

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Add Pipelining support in psql
Дата
Msg-id Z9oIRs2c7SCTNmfi@paquier.xyz
обсуждение исходный текст
Ответ на Re: Add Pipelining support in psql  ("Daniel Verite" <daniel@manitou-mail.org>)
Список pgsql-hackers
On Tue, Mar 18, 2025 at 10:36:28AM +0100, Daniel Verite wrote:
> It's actually possible to use parameters
>
> \startpipeline
> \bind 'foo'
> select $1;
> \endpipeline
>
>  ?column?
> ----------
>  foo
> (1 row)
>
> I suspect there's a misunderstanding that \bind can only be placed
> after the query, because it's always written like that in the regression
> tests, and in the documentation.
> But that's just a notational preference.

Nice trick, unrelated to pipelines.  I don't think that we have
anything testing this specific pattern for \bind.  At quick glance all
our test use \bind at the end of a query string.  Perhaps we should?
--
Michael

Вложения

В списке pgsql-hackers по дате отправления: