Re: query optimization with UDFs - Mailing list pgsql-hackers

From Tom Lane
Subject Re: query optimization with UDFs
Date
Msg-id 14167.1160521617@sss.pgh.pa.us
Whole thread Raw
In response to Re: query optimization with UDFs  (Neil Conway <neilc@samurai.com>)
Responses Re: query optimization with UDFs
List pgsql-hackers
Neil Conway <neilc@samurai.com> writes:
> BTW, I think it would make sense to implement a limited subset of the
> xfunc ideas: add options to CREATE FUNCTION to allow cost information to
> be specified, and then take advantage of this information instead of
> using the existing constant kludges. This would be a tangible
> improvement, and would have minimal impact on the planner.

The trick is to figure out what a useful parameterized cost model would
look like.  IIRC, the main reason the xfunc code rotted on the vine was
that its cost parameters didn't seem to be either easy to select or
powerful in predicting actual cost.  We'd have to do better this time.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: 8.2beta1 does not compile for me on Solaris 10
Next
From: Tom Lane
Date:
Subject: Re: Index Tuning Features