Re: CTEs and temp_buffers? - Mailing list pgsql-admin

From Tom Lane
Subject Re: CTEs and temp_buffers?
Date
Msg-id 248032.1650996195@sss.pgh.pa.us
Whole thread Raw
In response to CTEs and temp_buffers?  (Wells Oliver <wells.oliver@gmail.com>)
Responses Re: CTEs and temp_buffers?  (MichaelDBA <MichaelDBA@sqlexec.com>)
List 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 by date:

Previous
From: MichaelDBA
Date:
Subject: Re: CTEs and temp_buffers?
Next
From: MichaelDBA
Date:
Subject: Re: CTEs and temp_buffers?