Re: PG writes a lot to the disk

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: PG writes a lot to the disk
Дата
Msg-id D960CB61B694CF459DCFB4B0128514C201E66F9E@exadv11.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: PG writes a lot to the disk  ("Laurent Raufaste" <analogue@glop.org>)
Ответы 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>)
Список 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 по дате отправления:

Предыдущее
От: "Laurent Raufaste"
Дата:
Сообщение: Re: PG writes a lot to the disk
Следующее
От: Bill Moran
Дата:
Сообщение: Re: PG writes a lot to the disk