Re: PG writes a lot to the disk

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Laurent Raufaste *EXTERN*" <analogue(at)glop(dot)org>, <pgsql-performance(at)postgresql(dot)org>
Subject: Re: PG writes a lot to the disk
Date: 2008-03-20 14:38:34
Message-ID: D960CB61B694CF459DCFB4B0128514C201E66F9E@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Laurent Raufaste wrote:
> 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.

Good that you solved your problem.

PostgreSQL doesn't write into the table files when it SELECTs data.

Without an EXPLAIN plan it is impossible to say what PostgreSQL
was doing, but most likely it was building a large hash structure
or something similar and had to dump data into temporary files.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Bill Moran 2008-03-20 14:58:33 Re: PG writes a lot to the disk
Previous Message Laurent Raufaste 2008-03-20 10:48:13 Re: PG writes a lot to the disk