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

From Tom Lane
Subject Re: pgbench - allow backslash-continuations in custom scripts
Date
Msg-id 30529.1458589848@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgbench - allow backslash-continuations in custom scripts  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: pgbench - allow backslash-continuations in custom scripts  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> Mmph.  I just don't see any benefit in being able to start a command
> in the middle of a line.

I agree that there's no functional benefit; it's a matter of consistency.
In particular, psql has always allowed you to write multiple SQL commands
per line:
   SELECT 2+2; SELECT x FROM tab; SELECT y FROM othertab;

and as of yesterday pgbench supports that as well.  So allowing multiple
backslash commands on a line improves consistency both with psql and with
pgbench's own behavior, IMV.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: pgbench - allow backslash-continuations in custom scripts
Next
From: Robert Haas
Date:
Subject: Re: Declarative partitioning