2015-05-07 20:18 GMT+02:00 Fabien COELHO <coe...@cri.ensmp.fr>:

>
> Hello devs,
>
> Since an expression syntax has been added to pgbench, I find that the
> readability of expressions is not great. An extra '=' improves the
> situation for me:
>
>    \set id = 1 + abs((:id * 1021) % (100000 * :scale))
>
> seems slightly better than:
>
>    \set id 1 + abs((:id * 1021) % (100000 * :scale))
>
> But that is debatable!
>
> The attached patch just ignores a leading '=' in a pgbench expression.
>

It is question :( - it break a consistency with psql

Regards

Pavel


>
> --
> Fabien.
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>
>

Reply via email to