Re: array in postgre - Mailing list pgsql-novice

From Tom Lane
Subject Re: array in postgre
Date
Msg-id 2757.1089433745@sss.pgh.pa.us
Whole thread Raw
In response to array in postgre  (gavaneh <gavaneh@yahoo.com>)
List pgsql-novice
gavaneh <gavaneh@yahoo.com> writes:
> suppose we have the following query:
> select ....from ...where...and x *=3;
> "x" is an integer array,here we want to check whether
> "x" contains 3 or not,this is the same as one of
> postgre documentaion example,however it doesnt
> work.(why???)

Probably because you didn't install the contrib module that supports
the *= operator.

Note that as of 7.4 there is a more standard way to do this.

            regards, tom lane

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Extended Query: Parse Command: syntax?
Next
From: Tom Lane
Date:
Subject: Re: Extended query: parse command freezes backend