pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: manojkumar@ameyo.com
Subject: BUG #16739: Temporary files not deleting from data folder on disk
Date: Mon, 23 Nov 2020 08:41:07 +0000
Message-ID: <16739-01bbd1b6e3a30313@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16739
Logged by:          Manoj Kumar
Email address:      manojkumar@ameyo.com
PostgreSQL version: 10.8
Operating system:   Centos OS 7.6 Version 0
Description:        

There is a problem with Postgres that temporary tables being created are not
cleaning up by Postgres itself.
We have an AutoVacuum job going on for the cleanup as well.
However, when we restart the Postgres service this data is cleaned up by
itself


We are facing huge issues with this problem, as our customer database size
is tremendously increasing from 80GB (actual Size) to 7TB.
Hampering the live production.

need a solution for this ASAP.
Database size on Disk-
weblogin_setup7          | postgres | UTF8     | en_US.UTF-8 | en_US.UTF-8 |
                      | 7338 GB | pg_default |

Count of temporary files-
select count(*) from pg_ls_dir ( '/var/lib/pgsql/10/data/base/16384' ) as
file where file::text not in (select oid::text from pg_class );
 count
-------
 95263
(1 row)

The Actual size of the database -
38 GB



view thread (12+ messages)  latest in thread

Message-ID: <16739-01bbd1b6e3a30313@postgresql.org>
Permalink:  ../16739-01bbd1b6e3a30313@postgresql.org/
Also on:    postgresql.org/message-id/16739-01bbd1b6e3a30313@postgresql.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, manojkumar@ameyo.com
  Subject: Re: BUG #16739: Temporary files not deleting from data folder on disk
  In-Reply-To: <16739-01bbd1b6e3a30313@postgresql.org>

* 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