Re: small temp files - Mailing list pgsql-admin

From Scott Ribe
Subject Re: small temp files
Date
Msg-id 8E03B792-C389-456D-913D-4F2B0EBB903E@elevated-dev.com
Whole thread Raw
In response to Re: small temp files  (Holger Jakobs <holger@jakobs.com>)
Responses Re: small temp files
Re: small temp files
List pgsql-admin
> On Jul 22, 2024, at 7:00 AM, Holger Jakobs <holger@jakobs.com> wrote:
>
> Typically, queries which need a lot of memory (RAM) create temp files if work_mem isn't sufficient for some sorting
orhash algorithms. 
>
> Increasing work_mem will help, but small temp files don't create any trouble.
>
> You can set work_mem within each session, don't set it high globally.

I understand those things--my question is why, with work_mem set to 128MB, I would see tiny temp files (7452 is common,
asis 102, and I've seen as small as 51). 




pgsql-admin by date:

Previous
From: Holger Jakobs
Date:
Subject: Re: small temp files
Next
From: Paul Smith*
Date:
Subject: Re: small temp files