Please provide some more information, like your postgres version and settings.
Some relevant things are included here.
https://wiki.postgresql.org/wiki/Slow_Query_Questions
-- Justin