Thomas Kellerer wrote:
> I just noticed that you can do something like this (using 9.4.1):
>
> select array[1,2,3] - 3
>
> which is doing the same thing as:
>
> select array_remove(array[1,2,3],3)
I can't reproduce this on my PostgreSQL 9.4.1:
test=> select array[1,2,3] - 3;
ERROR: operator does not exist: integer[] - integer
LINE 1: select array[1,2,3] - 3;
^
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
Did you add casts or operators?
Yours,
Laurenz Albe