Re: Allowing line-continuation in pgbench custom scripts

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Allowing line-continuation in pgbench custom scripts
Дата
Msg-id 20140526175302.GB11572@awork2.anarazel.de
обсуждение исходный текст
Ответ на Re: Allowing line-continuation in pgbench custom scripts  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Allowing line-continuation in pgbench custom scripts
Список pgsql-hackers
On 2014-05-26 11:44:31 -0400, Tom Lane wrote:
> Amit Langote <amitlangote09@gmail.com> writes:
> > In a custom pgbench script, it seems convenient to be able to split a
> > really long query to span multiple lines using an escape character
> > (bash-style). Attached adds that capability to read_line_from_file()
> > in pgbench.c
> 
> This seems pretty likely to break existing scripts that happen to contain
> backslashes.  Is it really worth the compatibility risk?

Weaknesses in the implementation aside, I don't think pgbench has to be
hold up to the same level of compatibility as many of our other
tools. It's just a benchmark tool after all.

I've more than once wished for the capability.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



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

Предыдущее
От: Matteo Beccati
Дата:
Сообщение: Re: [PATCH] Replacement for OSSP-UUID for Linux and BSD
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH] Replacement for OSSP-UUID for Linux and BSD