Re: pgbench - allow backslash continuations in \set expressions

Daniel Verite <daniel@manitou-mail.org>

From: "Daniel Verite" <daniel@manitou-mail.org>
To: "Fabien COELHO" <coelho@cri.ensmp.fr>
Cc: "Tom Lane" <tgl@sss.pgh.pa.us>,"Rafia Sabih" <rafia.sabih@enterprisedb.com>,"Robert Haas" <robertmhaas@gmail.com>,"PostgreSQL Developers" <pgsql-hackers@postgresql.org>
Date: 2016-12-01T09:16:26Z
Lists: pgsql-hackers
	Fabien COELHO wrote:

>  - if not, are possible corner case backward incompatibilities introduced
>    by such feature ok?

In psql, if backslash followed by [CR]LF is interpreted as a
continuation symbol, commands like these seem problematic
on Windows since backslash is the directory separator:

\cd \
\cd c:\somepath\

Shell invocations also come to mind:
\! dir \


Best regards,
-- 
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite


Commits

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