Under the hood of views

Поиск
Список
Период
Сортировка
От David Kerr
Тема Under the hood of views
Дата
Msg-id 20090813160748.GB88642@mr-paradox.net
обсуждение исходный текст
Ответы Re: Under the hood of views  (Richard Huxton <dev@archonet.com>)
Список pgsql-performance
 developer came by and asked me an interesting question.

If he has a view with 20 columns in it, and he selects a specific column from the view
in his query. Does the engine when accessing the view return all columns? or is it
smart enough to know to just retrive the one?

example:

create view test as
select a,b,c,d,e,f,g from testtable;


select a from test;

(does the engine retrieve b-g?)

Thanks

Dave

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

Предыдущее
От: Matthew Wakeling
Дата:
Сообщение: Re: How to run this in reasonable time:
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Under the hood of views