space issue in 11 server

From: Prakash Ramakrishnan <prakash(dot)ramakrishnan(dot)ap(at)nielsen(dot)com>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: space issue in 11 server
Date: 2019-06-06 09:42:31
Message-ID: CAA2eZXyB4Zwhfc_xxL8+p-jf+WUjk-PK8-uVPftxqNmFN5htXw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Team,

We had an one issue with prod server .The database showing the size of
809gb but it assigned in custom tablespace and the path also showing same
size but
inside the tablespace path only minimum files only 1gb others it kb size
only

we did vacuum full also no dead tuples but the size occupied its strange
actual db size is 90gb
need some help how can i resolve it.

please find the below details,

postgres=# \l+
List of
databases
Name | Owner | Encoding | Collate | Ctype | Access
privileges | Size | Tablespace | Description
-----------+----------+----------+-------------+-------------+-----------------------+---------+------------+--------------------------------------------
AIBE01PR | npp | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
| 809 GB | be2_data |
npp | npp | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
| 8067 kB | pg_default |

postgres=# SELECT
pg_size_pretty (
pg_tablespace_size ('be2_data')
);
pg_size_pretty
----------------
796 GB
(1 row)

this is the schemas size only inside the database something wrong in
occupied the space around 750gb please do the needful
schemaname | s
-----------------------+------------
company_prod | 18 MB
common_prod | 2408 kB
media_prod | 9168 kB
temp_tables_prod | 32 kB
print_prod | 93 MB
printvp_prod | 80 kB
utl_file | 8192 bytes
pg_temp_5 | 3680 kB
pcheck_bo | 405 MB
item_prod | 1214 MB
admin | 3120 kB
importbe_prod | 2381 MB
hint_plan | 8192 bytes
printtracking_prod | 756 MB
tariff_prod | 168 kB
lbmbe_prod | 7731 MB
lbm_prod | 56 kB
ora_webbe | 20 MB
printtracking_hist | 1408 kB
flatcom_hist | 16 kB
company_hist | 1051 MB
tariffbe_hist | 9480 kB
lbmbe_hist | 48 kB
flatcom_prod | 112 kB
public | 455 MB
realtimebe_prod | 7181 MB
lbmdigital_hist | 38 MB
tariffbe_prod | 2216 kB
printmoc_prod | 32 kB
item_hist | 10 GB
printmop_prod | 0 bytes
lbmdigital_prod | 14 GB
importexternalbe_prod | 81 MB
media_hist | 16 MB
reportsbe_prod | 696 kB
import_prod | 8192 bytes
cmt_prod | 4934 MB

--
Thanks,
Prakash.R

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2019-06-06 11:49:59 BUG #15837: Precompiling embedded SQL applications which are created by SJIS character code is failed.
Previous Message Aditya Toshniwal 2019-06-06 04:52:39 Re: BUG #15831: pgadmin bug: add column and comment failure when you alter table