How to speed up the following query execution? it took 65s just to retrieve 37 records. Any solution guys? (I'm using PostgreSQL 9.1.6 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.6 20120305 (Red Hat 4.4.6-4), 64-bit) This is the query:How to speed up the following query execution?