On Thu, Jun 18, 2009 at 6:06 PM, Brian Cox<brian.cox@xxxxxx> wrote: > these queries are still running now 27.5 hours later... These queries are > generated by some java code and in putting it into a test program so I could > capture the queries, I failed to get the id range correct -- sorry for > wasting your time with bogus data. Below is the EXPLAIN output from the 4 > correct queries. I can't tell which one is being executed by PID 7397, but > the query plans, except the last, do look very similar. In any event, as I > mentioned, all 4 are still running. this might be quite bogus question, just a hit - but what is your work_mem set to ? Guys, isn't postgresql giving hudge cost, when it can't sort in memory ? -- GJ -- Sent via pgsql-performance mailing list (pgsql-performance@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance