Arnau Rebassa Villalonga wrote:
The configuration of postgresql is the default, I tried to tune the postgresql.conf and the results where disappointing, so I left again the default values.
That's the first thing to fix. Go to the page below and read through the "Performance Tuning" article.
http://www.varlena.com/varlena/GeneralBits/Tidbits/index.php -- Richard Huxton Archonet Ltd