pgbench - allow backslash continuations in \set expressions

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: pgbench - allow backslash continuations in \set expressions
Date: 2016-10-03 08:57:44
Message-ID: alpine.DEB.2.20.1610031049310.19411@lancre
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
pgbench-set-continuation-1.patch text/x-diff 1.6 KB
cont.sql application/x-sql 132 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Stas Kelvich 2016-10-03 10:01:46 Re: WIP: About CMake v2
Previous Message Michael Paquier 2016-10-03 08:05:20 Re: Backporting PostgresNode.pm