Re: error in docs - Mailing list pgsql-bugs

From Stephan Szabo
Subject Re: error in docs
Date
Msg-id 20030816190658.G74271-100000@megazone.bigpanda.com
Whole thread Raw
In response to error in docs  (andrea gelmini <andrea.gelmini@linux.it>)
List pgsql-bugs
On Sun, 17 Aug 2003, andrea gelmini wrote:

> test=# SELECT * FROM sal_emp WHERE pay_by_quarter[1:4] *= 10000;
> ERROR:  Unable to identify an operator '*=' for types 'integer[]' and 'integer'
>     You will have to retype this query using an explicit cast

I see from those docs:

However, this quickly becomes tedious for large arrays, and is not helpful
if the size of the array is unknown. Although it is not part of the
primary PostgreSQL distribution, there is an extension available that
defines new functions and operators for iterating over array values.
Using this, the above query could be:

SELECT * FROM sal_emp WHERE pay_by_quarter[1:4] *= 10000;

---
 This is talking about an extension that's not part of the primary
distribution as described in the paragraph before the example.
I believe it's refering to contrib/array.

pgsql-bugs by date:

Previous
From: andrea gelmini
Date:
Subject: error in docs
Next
From: Joe Conway
Date:
Subject: Re: error in docs