I have following rather simple query
select count(*) from tbl t1, tbl t2
For some reason it takes tens of seconds to execute this command. I wonder why it happens? It seems that it builds Cartesian product of that tables (table has about 270k rows), but amount of rows is obvious without building product.
Some clarifications would be helpful.