Re: base directory size getting increased

From: Atul Kumar <akumar14871(at)gmail(dot)com>
To: Ravi Krishna <ravikrishna3(at)icloud(dot)com>
Cc: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: base directory size getting increased
Date: 2021-06-07 16:22:41
Message-ID: CA+ONtZ687H033-3U8iCW2SmZSAdHJW014P0ARSmdFii92CEdcg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Sir,

I don’t think there is any old connection connected as there is no process
I found from pg_stat_activity.

Is there any other way to trace out such sessions.

Regards
Atul

On Monday, June 7, 2021, Ravi Krishna <ravikrishna3(at)icloud(dot)com> wrote:

> >
> > 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 Tom Lane 2021-06-07 16:24:09 Re: Database issues when adding GUI
Previous Message Rich Shepard 2021-06-07 16:22:02 Re: Database issues when adding GUI