Re: pgbench - allow backslash-continuations in custom scripts

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgbench - allow backslash-continuations in custom scripts
Дата
Msg-id 30529.1458589848@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgbench - allow backslash-continuations in custom scripts  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: pgbench - allow backslash-continuations in custom scripts  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> Mmph.  I just don't see any benefit in being able to start a command
> in the middle of a line.

I agree that there's no functional benefit; it's a matter of consistency.
In particular, psql has always allowed you to write multiple SQL commands
per line:
   SELECT 2+2; SELECT x FROM tab; SELECT y FROM othertab;

and as of yesterday pgbench supports that as well.  So allowing multiple
backslash commands on a line improves consistency both with psql and with
pgbench's own behavior, IMV.
        regards, tom lane



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: pgbench - allow backslash-continuations in custom scripts
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Declarative partitioning