Re: base directory size getting increased

From: Ravi Krishna <ravikrishna3(at)icloud(dot)com>
To:
Cc: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: base directory size getting increased
Date: 2021-06-07 13:44:44
Message-ID: B66808BD-3F39-42B4-856D-10B007DAE4B2@icloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


>
> initially pgsql_tmp size was 87 GB and after execution of query it was
> started increasinng beyond 87GBs so yes, pgsql_tmp directory size is
> getting increased while exporting data into csv file.
>
> But once I rolled back the query, pgsql_tmp directory it was back to
> 87 GBs so please help me in telling how do I clean that 87GB of space
> of pgsql_tmp directory.
>

Ideally applications which creates temp table should drop it when no longer needed.
When not dropped, they get dropped automatically when the session which created
them terminates. Looks like in your case both are not happening.

Which is the oldest session still shown as connected?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2021-06-07 13:50:17 Re: base directory size getting increased
Previous Message Atul Kumar 2021-06-07 12:18:51 Re: base directory size getting increased