Re: CTEs and temp_buffers?

From: MichaelDBA <MichaelDBA(at)sqlexec(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Wells Oliver <wells(dot)oliver(at)gmail(dot)com>, pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: CTEs and temp_buffers?
Date: 2022-04-26 17:59:02
Message-ID: 8c199e78-5320-5ea9-9c08-4d33da68e941@sqlexec.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)sqlexec(dot)com <mailto:michaelvitale(at)sqlexec(dot)com>

703-600-9343

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2022-04-26 18:03:15 Re: CTEs and temp_buffers?
Previous Message Bruce Momjian 2022-04-26 17:48:21 Re: CTEs and temp_buffers?