Re: temporary file - Mailing list pgsql-admin

From Albe Laurenz
Subject Re: temporary file
Date
Msg-id A737B7A37273E048B164557ADEF4A58B50FB745D@ntex2010i.host.magwien.gv.at
Whole thread Raw
In response to temporary file  (Artem Tomyuk <admin@leboutique.com>)
Responses Re: temporary file
List pgsql-admin
Artem Tomyuk wrote:
> The questions is how to avoid creating temp files on disk?
> 
> The work_mem parameter set to 1600 Megabytes, but on logs i still can see the messages like:
> LOG:  temporary file: path "base/pgsql_tmp/pgsql_tmp7905.2", size 865869824

Temporary files on disk are smaller than the memory required for the corresponding in-memory
operation, which explains why the size of the temporary file is less than 1600 MB.

You can either try to increase work_mem or change the query so that it does not perform
such large operations.

Yours,
Laurenz Albe

pgsql-admin by date:

Previous
From: Artem Tomyuk
Date:
Subject: temporary file
Next
From: Keith Fiske
Date:
Subject: Re: temporary file