From: Laurent Raufaste <analogue@glop.org>
To: pgsql-performance@postgresql.org
Subject: Re: PG writes a lot to the disk
Date: Thu, 20 Mar 2008 11:48:13 +0100
Message-ID: <669dc9710803200348x64122249jd2ac5924d78a6da0@mail.gmail.com> (raw)
In-Reply-To: <669dc9710803190418g45002e87k19cb742579c1eeac@mail.gmail.com>
References: <669dc9710803190418g45002e87k19cb742579c1eeac@mail.gmail.com>
2008/3/19, Laurent Raufaste <analogue@glop.org>:
> What does it writes so much in the base directory ? If it's some
> temporary table or anything, how can I locate it so I can fix the
> problem ?
Thanks for your help everybody ! I fixed the problem by doing an
ANALYZE to every table (yes I'm so noob ;) ).
The problem was that the optimiser didn't know how to run the queries
well and used millions of tuples for simple queries. For each tuple
used it was updating some bit in the table file, resulting in a huge
writing activity to that file.
After the ANALYZE, the optimiser worked smarter, used thousand time
less tuple for each query, and PG was not required to update so much
bits in the table files.
The server is now OK, thanks !
--
Laurent Raufaste
<http://www.glop.org/;
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: analogue@glop.org
Subject: Re: PG writes a lot to the disk
In-Reply-To: <669dc9710803200348x64122249jd2ac5924d78a6da0@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox