View vs function

Поиск
Список
Период
Сортировка
От Keith Worthington
Тема View vs function
Дата
Msg-id 423E420D.1020503@NarrowPathInc.com
обсуждение исходный текст
Ответы Re: View vs function  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-performance
Hi All,

I have been reading about set returning functions.  What I would like to
know is is there a performance advantage in using SRFs versus querying a
view.  Assuming the underlying SQL is the same for the view vs the
function except for the WHERE clause which of these would you expect to
be faster?  Or does the planner realize all this...

SELECT * FROM view_big_query WHERE column1 = 1234;

SELECT * FROM func_bug_query(1234);

--
Kind Regards,
Keith

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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: What needs to be done for real Partitioning?
Следующее
От: Greg Stark
Дата:
Сообщение: Re: What needs to be done for real Partitioning?