Re: small temp files - Mailing list pgsql-admin

From Holger Jakobs
Subject Re: small temp files
Date
Msg-id a9dee6e8-6197-d9bb-028e-6d020167bf57@jakobs.com
Whole thread Raw
In response to small temp files  (Scott Ribe <scott_ribe@elevated-dev.com>)
Responses Re: small temp files
List pgsql-admin
Am 22.07.24 um 14:50 schrieb Scott Ribe:
> What would be the cause of small temp files? For example:
>
> temporary file: path "base/pgsql_tmp/pgsql_tmp1261242.83979", size 7452
>
> work_mem is set to 128MB
>
>
> --
> Scott Ribe
> scott_ribe@elevated-dev.com
> https://www.linkedin.com/in/scottribe/
>
>
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.

Regards,

Holger


>
>
-- 

Holger Jakobs, Bergisch Gladbach


Attachment

pgsql-admin by date:

Previous
From: Scott Ribe
Date:
Subject: small temp files
Next
From: Scott Ribe
Date:
Subject: Re: small temp files