Array problem - Mailing list pgsql-general

From Panagiotis Papadakos
Subject Array problem
Date
Msg-id Pine.LNX.4.64.0806261029000.30666@kiwi.csd.uoc.gr
Whole thread Raw
List pgsql-general
Hi everybody.

I have created a table containing an array of points
(each point exists only once in the array).

CREATE TABLE lala (id INT NOT NULL, occur point[] not NULL, PRIMARY
KEY(id));

I am trying to find a way to get the position of array elements
that have a specific x coordinate.

How can I do it?

P.S.

select * from lala where point'(289,0)' ?| any (occur);
returns the whole tuples that have points with x=289 in their array.

Thanks in advance.

     Panagiotis Papadakos

pgsql-general by date:

Previous
From: Rodrigo Gonzalez
Date:
Subject: Re: ERROR: could not open relation with OID 2836
Next
From: Dean Rasheed
Date:
Subject: Re: what are rules for?