Re: Documentation bug?

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "'Thomas Kellerer *EXTERN*'" <spam_eater(at)gmx(dot)net>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Documentation bug?
Date: 2015-05-19 09:53:56
Message-ID: A737B7A37273E048B164557ADEF4A58B366127B1@ntex2010i.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Maxim Boguk 2015-05-19 11:33:38 Re: Documentation bug?
Previous Message Thomas Kellerer 2015-05-19 09:39:20 Documentation bug?