Re: psql: Add command to use extended query protocol
От | Daniel Verite |
---|---|
Тема | Re: psql: Add command to use extended query protocol |
Дата | |
Msg-id | 01243e67-ef11-4c3a-90e7-c8a203e827da@manitou-mail.org обсуждение исходный текст |
Ответ на | Re: psql: Add command to use extended query protocol ("David G. Johnston" <david.g.johnston@gmail.com>) |
Ответы |
Re: psql: Add command to use extended query protocol
|
Список | pgsql-hackers |
David G. Johnston wrote: > I would keep the \gp meta-command to force extended mode regardless > of whether the query itself requires it. +1 > A pset variable to control the default seems reasonable as well. > The implication would be that if you set that pset variable there is > no way to have individual commands use simple query mode directly. +1 except that it would be a \set variable for consistency with the other execution-controlling variables. \pset variables control only the display. BTW if we wanted to auto-detect that a query requires binding or the extended query protocol, we need to keep in mind that for instance "PREPARE stmt AS $1" must pass without binding, with both the simple and the extended query protocol. Best regards, -- Daniel Vérité https://postgresql.verite.pro/ Twitter: @DanielVerite
В списке pgsql-hackers по дате отправления: