However, that would not diminish nor change much the amount and kind of
code necessary to add an operator or a function
That's not really true. You can't really add abs(x) or hash(x) right
now because the current code only supports this syntax:
\set varname operand1 [ operator operand2 ]
There's no way to add support for a unary operator with that syntax.
Hmmm. If you accept a postfix syntax, there is:-)
But this is not convincing. Adding a unary function with a clean syntax
indeed requires doing something with the parser.
--
Fabien.
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers