work_mem, temp_buffers, and temp_file_limit

From: Michael Lewis <mlewis(at)entrata(dot)com>
To: PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: work_mem, temp_buffers, and temp_file_limit
Date: 2021-01-20 20:30:49
Message-ID: CAHOFxGquz=V18EtwoVfO9bBYv9VrJH8Mx0J==zom6WU=FQPAow@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I've read the documentation but am unclear on what memory is used when
temp_buffers are exceeded by temp tables that are created. Does that also
go towards temp_file_limit?

When are temp files (temp_file_limit) cleared out? If there is a big ugly
query that uses 8GB of a 10GB limit, and then another query in the same
connection wants to use 3GBs of temp files total, will it fail? Or will
those earlier temp files have been cleared or otherwise be ignored?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2021-01-20 20:35:55 Re: work_mem, temp_buffers, and temp_file_limit
Previous Message Paul Förster 2021-01-20 20:16:19 Re: upgrade using logical replication