Search Postgresql Archives

subqueries

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

 



I have such a statement:
select * from (subquery1) as foo, (subquery2) as bar;
Both subqueries are reasonably fast (<0.5s) and generate results that have 
several (<10) rows but the whole query takes forever to execute. Moreover if 
I simplify those subqueries (limiting functionality) the whole select clause 
works just fine. It seems that those subqueries are not executed separately. 
What am I doing wrong?

Tomek

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq

[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