From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Markus Schaber <schabi(at)logix-tt(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: query optimization with UDFs |
Date: | 2006-10-14 14:47:17 |
Message-ID: | 966.1160837237@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Markus Schaber <schabi(at)logix-tt(dot)com> writes:
> Tom Lane wrote:
>> 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.
> I don't know what the xfunc people did, but at least for some varlen
> data types (Arrays, PostGIS, text), some function costs (concatenation,
> GeomUnion etc.) can be estimated via the average field size of the tables
> Has that idea been considered?
[ shrug... ] Concatenation is definitely not one of the functions we
need to worry about. In fact, I'd say that only functions containing
database accesses are really worth worrying about --- and the hard
part of modeling them is the possible variation in the number of rows
touched depending on their parameters.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Ian Dowse | 2006-10-14 16:46:41 | Same-page UPDATEs in bloated tables |
Previous Message | Andrew Sullivan | 2006-10-14 13:20:09 | Re: List of supported 64bit OS |
From | Date | Subject | |
---|---|---|---|
Next Message | Chris Mair | 2006-10-14 18:23:53 | Re: more anti-postgresql FUD |
Previous Message | Markus Schaber | 2006-10-14 09:43:44 | Re: query optimization with UDFs |