Re: pgbench - allow backslash continuations in \set expressions

Fabien COELHO <coelho@cri.ensmp.fr>

From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Rafia Sabih <rafia.sabih@enterprisedb.com>, Robert Haas <robertmhaas@gmail.com>, PostgreSQL Developers <pgsql-hackers@postgresql.org>
Date: 2016-12-03T08:22:39Z
Lists: pgsql-hackers

Attachments

> FWIW, I looked a bit further and concluded that probably psqlscan.l
> doesn't need to be modified; so likely you could do this across all of
> pgbench's commands without touching psql.  That might be an acceptable
> compromise for now, though I still think that as soon as we have this
> for pgbench, users will start wanting it in psql.

The attached patch adds backslash-return (well newline really) 
continuations to all pgbench backslash-commands.

The attached test uses continuations on all such commands (sleep set 
setshell and shell).

I think that adding continuations to psql should be a distinct patch.

-- 
Fabien.

Commits

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