Increase in CloudSQL Postgres instance temporary files (How to delete them?)

217 views
Skip to first unread message

Antonio Calo Chas

unread,
Feb 24, 2021, 5:40:14 AM2/24/21
to Google Cloud SQL discuss

There is an exponential increase in temporary files and they are not being released correctly. In Googlee Cloud SQL Postgres we do not have permissions to execute the pgsql_temp directory deletion.

Rebooting the machine is supposed to delete the base / pgsql_temp directory but it doesn't.

I can't stop the master either since it has an associated replica.

How can I force delete temporary files?

SELECT datname, temp_files AS "Temporary files", pg_size_pretty(temp_bytes) AS "Size of temporary files" FROM pg_stat_database;

(We can see in attach image the stoage and number of files)

Thanks a lot

Captura de pantalla de 2021-02-23 23-22-36.png

methkal

unread,
Feb 25, 2021, 4:49:23 AM2/25/21
to Google Cloud SQL discuss
Reply all
Reply to author
Forward
0 new messages