user defined function speeds

Поиск
Список
Период
Сортировка
От tjk@tksoft.com
Тема user defined function speeds
Дата
Msg-id 199907162224.PAA14483@uno.tksoft.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Counting bool flags in a complex query  (Michael Richards <miker@scifair.acadiau.ca>)
Список pgsql-sql
> > Good plan.  Although you could sort by a user-defined function result,
> > it's likely to be horribly slow (because user-defined functions are
> > slow:-().


What is the actual overhead from using a userdefined
function (a C function, say)?

Obviously there is an overhead involved in calling
any function. I would like to know what kind of issues
are involved when using results of a user defined function for
sorting.

Are the results calculated only once, as one would expect,
for example.

Thanks,


Troy

Troy Korjuslommi                Tksoft OY, Inc.
tjk@tksoft.com                  Software Development
                                Open Source Solutions
                                Hosting Services

В списке pgsql-sql по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [SQL] Re: [HACKERS] Counting bool flags in a complex query
Следующее
От: Wayne Piekarski
Дата:
Сообщение: Fix up for BTP_CHAIN problems