Are SQL functions better than PG/SQL ones?

Поиск
Список
Период
Сортировка
От Vitaly Belman
Тема Are SQL functions better than PG/SQL ones?
Дата
Msg-id ccoi28$imu@odah37.prod.google.com
обсуждение исходный текст
Ответы Re: Are SQL functions better than PG/SQL ones?  (mike g <mike@thegodshalls.com>)
Список pgsql-general
I ready somewhere that PostgreSQL is able to optimize SQL functions,
the same way it does with views. For example if you do:

select * from cv_customers() order by customer_id;

When customers is an SQL function the optimizer/planner will be able to
actually use the customer_id index.

From some tests I made it doesn't seem true.. Yet I am asking to know
for sure.


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

Предыдущее
От: homecurr@yahoo.com
Дата:
Сообщение: change the last bit
Следующее
От: "David Parker"
Дата:
Сообщение: Re: moving an installation