Search Postgresql Archives

Re: Avoiding duplication of code via views -- slower? How do people typically do this?

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

 





Joe Van Dyk wrote:

Perhaps I fat-fingered something somewhere... I tried that and I got this: https://gist.github.com/joevandyk/4958906/raw/5561f95ef2b5d82f81ab14913c4d36f6aac3ee0a/gistfile1.txt

The with_filters view uses a different plan.
Interesting. It is avoiding the hash join, but it is still evaluating the exists column even when it is not referenced at all in the select. I would have expected the optimizer to remove it entirely.


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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux