Hello,
I just looked at your tables/queries/explains.
My piece of advice would be : add indexes on the columns you use the
most in the query (especially those used for joins).
A "seq scan" takes quite a time, an "index scan" takes nearly no time.
Well, indexes take a little space, but if your database is not that big,
it should be what you're looking for. Disk space does not cost that much
these times ^^
--
Isabelle Brette - isabelle(at)apartia(dot)fr