Re: Rtree on custom data types; type conversion stops index use. - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Rtree on custom data types; type conversion stops index use.
Date
Msg-id 6856.989612390@sss.pgh.pa.us
Whole thread Raw
In response to Rtree on custom data types; type conversion stops index use.  (Dave Blasby <dblasby@refractions.net>)
List pgsql-hackers
Dave Blasby <dblasby@refractions.net> writes:
> gives the correct results.  Postgres automatically uses the
> agg_points3d() function to convert the BOX3D into an AGG_POINTS3D.  
> Unfortunately, it doesn't use the index scan anymore; it does a sequence
> scan.

First question: what Postgres version?

Next question (if PG >= 7.0): did you mark your type conversion routine
as cachable?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Vince Vielhaber
Date:
Subject: Re: Search
Next
From: Dave Blasby
Date:
Subject: Re: Rtree on custom data types; type conversion stops index use.