Re: CTEs and temp_buffers?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CTEs and temp_buffers?
Дата
Msg-id 248032.1650996195@sss.pgh.pa.us
обсуждение исходный текст
Ответ на CTEs and temp_buffers?  (Wells Oliver <wells.oliver@gmail.com>)
Ответы Re: CTEs and temp_buffers?  (MichaelDBA <MichaelDBA@sqlexec.com>)
Список pgsql-admin
Wells Oliver <wells.oliver@gmail.com> writes:
> Out of curiosity, does the value of temp_buffers apply to how CTEs are
> generated under the hood?

No.  Intermediate results within a query (whether CTE or not) might
get spilled to disk in a "temporary file", but that's a distinct
mechanism from temp tables, which is what temp_buffers applies to.

Bruce's nearby answer explains how you can control/monitor temp
files, but he didn't actually answer your question ;-)

            regards, tom lane



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

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