pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ravi Krishna <ravikrishna3@icloud.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: base directory size getting increased
Date: Mon, 7 Jun 2021 09:44:44 -0400
Message-ID: <B66808BD-3F39-42B4-856D-10B007DAE4B2@icloud.com> (raw)
In-Reply-To: <CA+ONtZ5VtNOz3_g-jqFxg1Sq9LdwhLSPPoyCWgw2j5cHVwyCTQ@mail.gmail.com>
References: <CA+ONtZ7geCbY15e8cQ5XOTtKfJy0W=yBX3uRUdQork8MH89vvg@mail.gmail.com>
	<1134292be1b2c9e33e6bd6dd0c0fd53a565403ce.camel@cybertec.at>
	<CA+ONtZ5VtNOz3_g-jqFxg1Sq9LdwhLSPPoyCWgw2j5cHVwyCTQ@mail.gmail.com>


> 
> 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?




view thread (8+ messages)  latest in thread

Message-ID: <B66808BD-3F39-42B4-856D-10B007DAE4B2@icloud.com>
Permalink:  ../B66808BD-3F39-42B4-856D-10B007DAE4B2@icloud.com/
Also on:    postgresql.org/message-id/B66808BD-3F39-42B4-856D-10B007DAE4B2@icloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ravikrishna3@icloud.com
  Subject: Re: base directory size getting increased
  In-Reply-To: <B66808BD-3F39-42B4-856D-10B007DAE4B2@icloud.com>
  References: <CA+ONtZ7geCbY15e8cQ5XOTtKfJy0W=yBX3uRUdQork8MH89vvg@mail.gmail.com> <1134292be1b2c9e33e6bd6dd0c0fd53a565403ce.camel@cybertec.at> <CA+ONtZ5VtNOz3_g-jqFxg1Sq9LdwhLSPPoyCWgw2j5cHVwyCTQ@mail.gmail.com> <B66808BD-3F39-42B4-856D-10B007DAE4B2@icloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox