pgbench - allow backslash-continuations in custom scripts - Mailing list pgsql-hackers

From Fabien COELHO
Subject pgbench - allow backslash-continuations in custom scripts
Date
Msg-id alpine.DEB.2.10.1505141510130.1821@sto
Whole thread Raw
List pgsql-hackers
Add backslash continuations to pgbench custom scripts.

The benefit of this approach is that it is upward compatible, and it is 
also pretty simple to implement. The downside is that backslash 
continuation is not the best syntax ever invented, but then you do not 
have to use it if you do not like it.

The alternative would be to make semi-colon a mandatory end-of-line 
marker, which would introduce an incompatibility and requires more efforts 
to implement, including some kind of SQL-compatible lexer.

IMHO this approach is the best compromise.

-- 
Fabien.

pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: [COMMITTERS] pgsql: Add pg_audit, an auditing extension
Next
From: Fabien COELHO
Date:
Subject: Re: PATCH: pgbench allow '=' in \set