Re: work_mem, temp_buffers, and temp_file_limit

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: work_mem, temp_buffers, and temp_file_limit
Дата
Msg-id 785364.1611174955@sss.pgh.pa.us
обсуждение исходный текст
Ответ на work_mem, temp_buffers, and temp_file_limit  (Michael Lewis <mlewis@entrata.com>)
Список pgsql-general
Michael Lewis <mlewis@entrata.com> writes:
> I've read the documentation but am unclear on what memory is used when
> temp_buffers are exceeded by temp tables that are created.

The data gets flushed out to disk storage, or at least kernel disk buffers
(I don't think we'll try to fsync it).

> Does that also go towards temp_file_limit?

No, a "temp file" is distinct from a temporary relation.  Temp files
are used for anonymous transient stuff like a hash join's hash table.

> When are temp files (temp_file_limit) cleared out?

At the end of the query that used them.

            regards, tom lane



В списке pgsql-general по дате отправления:

Предыдущее
От: Michael Lewis
Дата:
Сообщение: work_mem, temp_buffers, and temp_file_limit
Следующее
От: Mohamed Wael Khobalatte
Дата:
Сообщение: Re: upgrade using logical replication