Kris Jurka <jurka(at)ejurka(dot)com> writes:> While adding schema support to the JDBC Driver, I came across a query > which occasionally generates some spectacularly bad plans.
Hm, does an ANALYZE help?
regards, tom lane