My db size is growing up to 41GB but when I create a backup it becomes 2.4 / 2.5GB, Why this much difference?
I have performed some vaccum, Reindexing etc. but still the size is not shrinking and it is showing 19 GB temp file but when I check in C:\Program Files\PostgreSQL\10\data\base\pgsql_tmp the folder is empty..
How can I delete those temp files? Is there a way to reduce my DB size?
EDIT

Query to get temp files
SELECT temp_files AS "Temporary files"
, temp_bytes AS "Size of temporary files"
FROM pg_stat_database db;