Efficiency of Views

Поиск
Список
Период
Сортировка
От Matt Helm
Тема Efficiency of Views
Дата
Msg-id e2ede3fa0603020957r1743bf8ao93b6dd067cf1be0f@mail.gmail.com
обсуждение исходный текст
Ответы Re: Efficiency of Views
Re: Efficiency of Views
Список pgsql-novice
I have a table (call it T1) made up of a join from two other tables
and a few calculated columns.

Currently, T1 gets refreshed by manually calling a function that does
the select on the join and then loops through each row doing an
update / insert as needed.

Obviously it would be nice to put this in a view so that I don't
have to worry about someone forgetting to call the refresh function.

My question (probably a common one):

When I select a single row from the view using WHERE will
the view build the calculated columns for every row regardless?

Thanks,
Matt

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

Предыдущее
От: George Weaver
Дата:
Сообщение: Re: pg_config --pgxs
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: Efficiency of Views