From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Atul Kumar <akumar14871@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: base directory size getting increased
Date: Mon, 07 Jun 2021 15:50:17 +0200
Message-ID: <7f74489c1e3faaf12583c192ff57b3f28f4c02b6.camel@cybertec.at> (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>
On Mon, 2021-06-07 at 17:48 +0530, Atul Kumar 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.
The files in that directory will always be cleaned up when the
query that uses the temporary files is done.
The backend process ID of the query is part of the temporary file name.
It could be that such files are left behind after a crash.
If you are sure that the don't belong to a running query (for example,
if their modification timestamp is old), you can delete them.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
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: laurenz.albe@cybertec.at, akumar14871@gmail.com
Subject: Re: base directory size getting increased
In-Reply-To: <7f74489c1e3faaf12583c192ff57b3f28f4c02b6.camel@cybertec.at>
References: <CA+ONtZ7geCbY15e8cQ5XOTtKfJy0W=yBX3uRUdQork8MH89vvg@mail.gmail.com> <1134292be1b2c9e33e6bd6dd0c0fd53a565403ce.camel@cybertec.at> <CA+ONtZ5VtNOz3_g-jqFxg1Sq9LdwhLSPPoyCWgw2j5cHVwyCTQ@mail.gmail.com> <7f74489c1e3faaf12583c192ff57b3f28f4c02b6.camel@cybertec.at>
* 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