As a late follow up - this problem was resolved. See: http://moodle.org/mod/forum/discuss.php?d=143347#p666910 for detail.
In the end, it had nothing to do with PostgreSql...
Hardware and performance
PostgreSQL server issues
This discussion has been locked so you can no longer reply to it.