Re: CTEs and temp_buffers?

Поиск
Список
Период
Сортировка
От MichaelDBA
Тема Re: CTEs and temp_buffers?
Дата
Msg-id 8c199e78-5320-5ea9-9c08-4d33da68e941@sqlexec.com
обсуждение исходный текст
Ответ на Re: CTEs and temp_buffers?  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-admin
Hmmm, I think you may be wrong about that one, Bruce.  I tried that before and log_temp_files seems to only log work_mem errors, not temp_buffers associated with temporary table allocations. The only way to see temp files used by temporary tables is to monitor the   <datadir>/base/pgsql_tmp directory, and that can be quite tricky since it happens so fast there.

Regards,
Michael Vitale


Bruce Momjian wrote on 4/26/2022 1:48 PM:
On Tue, Apr 26, 2022 at 10:08:31AM -0700, Wells Oliver wrote:
Out of curiosity, does the value of temp_buffers apply to how CTEs are
generated under the hood?
To see temp file usage, you can enable log_temp_files, and check the
server logs or enable client_min_messages.



Regards,

Michael Vitale, Sr. PostgreSQL DBA

Michaeldba@sqlexec.com

703-600-9343 


Вложения

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: CTEs and temp_buffers?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: CTEs and temp_buffers?