pgbench - allow backslash continuations in \set expressions - Mailing list pgsql-hackers

From Fabien COELHO
Subject pgbench - allow backslash continuations in \set expressions
Date
Msg-id alpine.DEB.2.20.1610031049310.19411@lancre
Whole thread Raw
Responses Re: pgbench - allow backslash continuations in \set expressions  (Christoph Berg <myon@debian.org>)
Re: pgbench - allow backslash continuations in \set expressions  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
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.
Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Backporting PostgresNode.pm
Next
From: Stas Kelvich
Date:
Subject: Re: WIP: About CMake v2