Re: view columns and performance

От: Tom Lane
Тема: Re: view columns and performance
Дата: ,
Msg-id: 6514.1280502662@sss.pgh.pa.us
(см: обсуждение, исходный текст)
Ответ на: view columns and performance  (Eric Schwarzenbach)
Список: pgsql-performance

Eric Schwarzenbach <> writes:
> I'm wondering whether columns, in the select list of a view that is used
> in a join, which are not used either as join criteria or in the select
> list of the overall query, effect the performance of the query.

If the view gets "flattened" into the calling query then unreferenced
columns will be optimized away, otherwise probably not.  You haven't
given enough details about your intended view definition to be sure
whether it can be optimized, but if it's just a join it's fine.

            regards, tom lane


В списке pgsql-performance по дате сообщения:

От: Karl Denninger
Дата:
Сообщение: Re: Testing Sandforce SSD
От: Robert Haas
Дата:
Сообщение: Re: Explains of queries to partitioned tables