pgbench - allow backslash continuations in \set expressions

Fabien COELHO <coelho@cri.ensmp.fr>

From: Fabien COELHO <coelho@cri.ensmp.fr>
To: PostgreSQL Developers <pgsql-hackers@postgresql.org>
Date: 2016-10-03T08:57:44Z
Lists: pgsql-hackers

Attachments

Attached patch does what is described in the title, hopefully. 
Continuations in other pgbench backslash-commands should be dealt with 
elsewhere...

Also attached is a small test script.

While looking at the code, I noticed that newline is \n. Maybe it should 
be (\r|\n|\r\n) to allow for MacOS & Windows. I have not changed that for 
now.

-- 
Fabien.

Commits

  1. Allow backslash line continuations in pgbench's meta commands.