Re: PATCH: pgbench allow '=' in \set - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: PATCH: pgbench allow '=' in \set
Date
Msg-id alpine.DEB.2.10.1505072053480.20788@sto
Whole thread Raw
In response to Re: PATCH: pgbench allow '=' in \set  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-hackers
> ​Would "colon-equal" be more acceptable - like in pl/pgsql?

Hmmm... I would tend to think that is even clearer as a separator than a 
mere "=". Too much Pascal in my youth? :-)

Although ":" means beginning of variable name in pgbench, I would not 
think that it is an issue because = is not a valid variable name.

> Even if "=" becomes a valid operator I would have to think it is a binary
> operator and so its position at the start of an expression would still be
> unambiguous as to whether it is cosmetic or functional.

That is also my conclusion.

-- 
Fabien.

pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: PATCH: pgbench allow '=' in \set
Next
From: Bruce Momjian
Date:
Subject: Re: Disabling trust/ident authentication configure option