Re: JOIN to a VIEW makes a real slow query

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

 



"Chuck D." <pgsql-performance@xxxxxxxxxx> writes:
> It is still using that sequence scan on the view after the APPEND for the 
> us_city and world_city table.  Any reason why the view won't use the indexes 
> when it is JOINed to another table but it will when the view is queried 
> without a JOIN?  I should have mentioned this is v8.1.4.

8.1 isn't bright enough for that.  Should work in 8.2 though.

> Also, does anyone know why this line:
> Join Filter: ("outer".city_id = "inner"."?column1?")
> ... contains "?column1?" instead of the actual column name?

EXPLAIN can't conveniently get access to the column name.  That could
probably be improved if someone wanted to put enough effort into it.

			regards, tom lane


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

  Powered by Linux