Re: Planner create a slow plan without an available index - Mailing list pgsql-general

From Tom Lane
Subject Re: Planner create a slow plan without an available index
Date
Msg-id 21789.1125414319@sss.pgh.pa.us
Whole thread Raw
In response to Re: Planner create a slow plan without an available index  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: Planner create a slow plan without an available index  (Ben-Nes Yonatan <da@canaan.co.il>)
List pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> rtree works on multidimesional (geometric) data. It can do range tests
> (is object A to the left of object B) but it's only applicable if your
> conditions can be interpreted that way.

> GiST is for creating custom index types, hardly likely to be useful
> in your case.

Actually either rtree or GIST should be able to do something useful with
this, since it's basically a 1-D overlap query.  The main problem with
GIST is to find a suitable opclass, since there aren't any in the core
system.  Possibly contrib/seg could be used.

            regards, tom lane

pgsql-general by date:

Previous
From: Greg Stark
Date:
Subject: Re: update functions locking tables
Next
From: Oliver Elphick
Date:
Subject: Re: 8.1beta1 RPMs