BUG #16739: Temporary files not deleting from data folder on disk

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: manojkumar(at)ameyo(dot)com
Subject: BUG #16739: Temporary files not deleting from data folder on disk
Date: 2020-11-23 08:41:07
Message-ID: 16739-01bbd1b6e3a30313@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 16739
Logged by: Manoj Kumar
Email address: manojkumar(at)ameyo(dot)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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Amit Kapila 2020-11-23 09:44:23 Re: BUG #16643: PG13 - Logical replication - initial startup never finishes and gets stuck in startup loop
Previous Message Heikki Linnakangas 2020-11-23 07:05:51 Re: lc_collate mess