Re: view columns and performance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric Schwarzenbach <subscriber@xxxxxxxxxxxxxx> 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

-- 
Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance


[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux