How does the planner treat a table function.

Поиск
Список
Период
Сортировка
От KÖPFERL Robert
Тема How does the planner treat a table function.
Дата
Msg-id ED4E30DD9C43D5118DFB00508BBBA76EB1663C@neptun.sonorys.at
обсуждение исходный текст
Список pgsql-sql
Hi,
we have got some tables (uw?) and functions. One function is defined like

get_abc():
SELECT a,b,c from table_x;

What happens if I query something like  
SELECT a,b from get_abc() where a=5;
while table_x is rather big?


Will PSQL at first query all records of table_x and then apply a where a=5
OR
will PSQL integrate it to a shorter query?


(In case there will be of course an intex over a to prevent sequential
search)


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

Предыдущее
От: Miroslav Šulc
Дата:
Сообщение: Re: lower and unicode
Следующее
От: pginfo
Дата:
Сообщение: Re: lower and unicode