Skip site navigation (1) Skip section navigation (2)

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 (view raw, whole thread or download thread mbox)
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: pgbench-set-continuation-1.patch
Description: text/x-diff (1.6 KB)
Attachment: cont.sql
Description: application/x-sql (132 bytes)

Responses

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group