using of select (myfunction()).* is so slow

Поиск
Список
Период
Сортировка
От Gerardo Herzig
Тема using of select (myfunction()).* is so slow
Дата
Msg-id 1296758402.30254.6.camel@inca.fmed.uba.ar
обсуждение исходный текст
Ответы Re: using of select (myfunction()).* is so slow  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-sql
Hi all, im using a function of my own in a subquery, and when wonderig
about the slowliness of this one, y relalize that:

test=# SELECT (_xxfunction(854,'711H',11,false)).* ;
(4 filas)
--Result DELETED
Duración: 1069,465 ms


glyms=# SELECT * from _xxfunction(854,'711H',11,false) ;
(4 filas)
Duración: 228,699 ms

For privacy reasons, i just deleted the result and the function name,
but the resulst are obviously exactly the same, and the ().* form (which
i needed) is taking so much more...there is a reason why? A workaround?

Thanks!

Gerardo



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Transaction-specific global variable
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: using of select (myfunction()).* is so slow