Re: Under the hood of views

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Under the hood of views
Дата
Msg-id 4A843F11.5020805@archonet.com
обсуждение исходный текст
Ответ на Under the hood of views  (David Kerr <dmk@mr-paradox.net>)
Ответы Re: Under the hood of views  (David Kerr <dmk@mr-paradox.net>)
Список pgsql-performance
David Kerr wrote:
>
> create view test as
> select a,b,c,d,e,f,g from testtable;
>
> select a from test;
>
> (does the engine retrieve b-g?)

Shouldn't - the query just gets rewritten macro-style. I don't think it
eliminates joins if you don't need any columns, but that's not possible
without a bit of analysis.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: David Kerr
Дата:
Сообщение: Under the hood of views
Следующее
От: Rstat
Дата:
Сообщение: Less expensive proprietary or Open source ETL tools