Bohdan Linda <bohdan(dot)linda(at)seznam(dot)cz> writes:> 2) Will my plan get better with new version of pgsql ( currently its 8.0.x )
8.0 is incapable of reordering outer joins, which is likely the cause ofyour problem.
regards, tom lane