Re: small temp files

From: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
To: Holger Jakobs <holger(at)jakobs(dot)com>
Cc: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: small temp files
Date: 2024-07-22 13:28:45
Message-ID: 8E03B792-C389-456D-913D-4F2B0EBB903E@elevated-dev.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> On Jul 22, 2024, at 7:00 AM, Holger Jakobs <holger(at)jakobs(dot)com> wrote:
>
> Typically, queries which need a lot of memory (RAM) create temp files if work_mem isn't sufficient for some sorting or hash 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, as is 102, and I've seen as small as 51).

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Paul Smith* 2024-07-22 13:34:09 Re: small temp files
Previous Message Holger Jakobs 2024-07-22 13:00:30 Re: small temp files