Re: [PERFORM] Indexing on a circle datatype

2009-08-24 Thread Gavin Love
Tom Lane wrote: Gavin Love writes: I seem to be unable to get postgres to use a gist index we have on a circle data type. SELECT id FROM tradesmen_profiles WHERE tradesmen_profiles.work_area @> point(0.0548691728419,51.5404384172); So far as I can see, the member operators of gist circle_

Re: [PERFORM] Indexing on a circle datatype

2009-08-24 Thread Tom Lane
Gavin Love writes: > I seem to be unable to get postgres to use a gist index we have on a > circle data type. > SELECT id FROM tradesmen_profiles WHERE tradesmen_profiles.work_area > @> point(0.0548691728419,51.5404384172); So far as I can see, the member operators of gist circle_ops are g

Re: [PERFORM] Indexing on a circle datatype

2009-08-24 Thread Matthew Wakeling
On Mon, 24 Aug 2009, Gavin Love wrote: I seem to be unable to get postgres to use a gist index we have on a circle data type. QUERY PLAN --- Seq Scan on tradesmen_profiles (cos

[PERFORM] Indexing on a circle datatype

2009-08-24 Thread Gavin Love
Hey, I seem to be unable to get postgres to use a gist index we have on a circle data type. Table "public.tradesmen_profiles" Column |Type | Modifiers ---+-+--- id