RE:

Taral <taral@mail.utexas.edu>

From: "Taral" <taral@mail.utexas.edu>
To: "Doug Smith" <doug@the-bridge.net>, <pgsql-general@postgreSQL.org>
Date: 1998-10-18T04:30:09Z
Lists: pgsql-general
> ex. select lastname||' '||firstname||' '||address

It's because the parser has no defined precedence for operators like ||.

Try:

select (((lastname || ' ') || firstname) || ' ') || address;

Yes, I know it's annoying. But there's a problem with defining precedence in
the grammar for operators like this. Sorry.

Taral