Re: PG writes a lot to the disk - Mailing list pgsql-performance

From Albe Laurenz
Subject Re: PG writes a lot to the disk
Date
Msg-id D960CB61B694CF459DCFB4B0128514C201E66F9E@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Re: PG writes a lot to the disk  ("Laurent Raufaste" <analogue@glop.org>)
Responses Re: PG writes a lot to the disk  (Bill Moran <wmoran@collaborativefusion.com>)
Re: PG writes a lot to the disk  (Kris Jurka <books@ejurka.com>)
List 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

pgsql-performance by date:

Previous
From: "Laurent Raufaste"
Date:
Subject: Re: PG writes a lot to the disk
Next
From: Bill Moran
Date:
Subject: Re: PG writes a lot to the disk