Re: [GENERAL] Documentation bug?

2015-05-19 Thread Thomas Kellerer
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 docume

Re: [GENERAL] Documentation bug?

2015-05-19 Thread Maxim Boguk
On Tue, May 19, 2015 at 7:39 PM, Thomas Kellerer wrote: > 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 arra

Re: [GENERAL] Documentation bug?

2015-05-19 Thread Albe Laurenz
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: oper

[GENERAL] Documentation bug?

2015-05-19 Thread Thomas Kellerer
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.

Re: [GENERAL] documentation bug

2014-02-27 Thread Alvaro Herrera
James Harper wrote: > Just a minor bug in the documentation - > http://www.postgresql.org/docs/9.3/static/bgworker.html says that bgw_main > takes an argument of void*, but when declared as such gcc -Wall gives a > warning of: > > init.c:59:19: warning: assignment from incompatible pointer type

[GENERAL] documentation bug

2014-02-27 Thread James Harper
Just a minor bug in the documentation - http://www.postgresql.org/docs/9.3/static/bgworker.html says that bgw_main takes an argument of void*, but when declared as such gcc -Wall gives a warning of: init.c:59:19: warning: assignment from incompatible pointer type [enabled by default] worker