On 2014-05-26 11:44:31 -0400, Tom Lane wrote: > Amit Langote <amitlangot...@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 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers