Read these two wiki pages and then include more info.
http://wiki.postgresql.org/wiki/Guide_to_reporting_problemshttp://wiki.postgresql.org/wiki/SlowQueryQuestions