Re: Documentation bug? - Mailing list pgsql-general

From Albe Laurenz
Subject Re: Documentation bug?
Date
Msg-id A737B7A37273E048B164557ADEF4A58B366127B1@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to Documentation bug?  (Thomas Kellerer <spam_eater@gmx.net>)
List pgsql-general
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

pgsql-general by date:

Previous
From: Thomas Kellerer
Date:
Subject: Documentation bug?
Next
From: Maxim Boguk
Date:
Subject: Re: Documentation bug?