Re: Documentation bug?

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Documentation bug?
Date: 2015-05-19 12:14:16
Message-ID: mjf9eo$h9o$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Maxim Boguk schrieb am 19.05.2015 um 13:33:
> Hello all,
>
> 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)
>
> but the minus is not documented as an array operator: http://www.postgresql.org/docs/current/static/functions-array.html
>
> Is that an oversight in the documentation or isn't the minus supposed to work like that in the first place?
>
>
> ​You very likely have an intarray extension installed​:​
> http://www.postgresql.org/docs/9.4/interactive/intarray.html
> int[] - int operator documented in the extension documentation as it's a part of the extension but not part of the PostgreSQL core.​

Ah, right - that was it. Completely forgot about that.

Sorry for the noise.

Thomas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ravi Krishna 2015-05-19 23:47:12 Does PG support bulk operation in embedded C
Previous Message Maxim Boguk 2015-05-19 11:33:38 Re: Documentation bug?