Postgres storage 16.5TB with DB size under 1TB

234 views
Skip to first unread message

Miroslav Kosteckij

unread,
May 30, 2022, 12:39:19 PM5/30/22
to Google Cloud SQL discuss
Hi,

Got a disk usage on Postgres indicating we are utilising 16.5 TB of data, however running various table size queries (https://wiki.postgresql.org/wiki/Disk_Usage) does not show any significant disk usage amounting to that amount? 

Peter Kok

unread,
May 31, 2022, 9:46:46 AM5/31/22
to google-cloud...@googlegroups.com
Do you have point in time recovery on? That will do it...

Peter 

On Mon, May 30, 2022, 10:39 AM Miroslav Kosteckij <miro...@carted.com> wrote:
Hi,

Got a disk usage on Postgres indicating we are utilising 16.5 TB of data, however running various table size queries (https://wiki.postgresql.org/wiki/Disk_Usage) does not show any significant disk usage amounting to that amount? 

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/3a241566-002d-4352-9ff7-84e0cd73e28cn%40googlegroups.com.

Andres Marquez Rodriguez

unread,
Jun 1, 2022, 1:00:13 PM6/1/22
to Google Cloud SQL discuss

Hi, Miroslav, 


Can you please share  the output of the queries below?

1) select pg_size_pretty(sum(size)) as "Total WAL disk usage" from pg_ls_waldir();

2) select pg_size_pretty(sum(size)) as "Total WAL disk usage" from pg_ls_waldir() where name not like '%.backup';

3) select * from pg_ls_waldir() order by modification Asc;

Reply all
Reply to author
Forward
0 new messages