Re: CTEs and temp_buffers?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Wells Oliver <wells(dot)oliver(at)gmail(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: CTEs and temp_buffers?
Date: 2022-04-26 18:03:15
Message-ID: 248032.1650996195@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Wells Oliver <wells(dot)oliver(at)gmail(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message MichaelDBA 2022-04-26 18:55:54 Re: CTEs and temp_buffers?
Previous Message MichaelDBA 2022-04-26 17:59:02 Re: CTEs and temp_buffers?