You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our repman instance, there are two large tables proxy_package_download and organization_package_download, which consume a lot of disk space and increase the size of our daily database dumps:
repman=# SELECT nspname || '.' || relname AS "relation",
pg_size_pretty(pg_relation_size(C.oid)) AS "size"
FROM pg_class C
LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)
WHERE nspname NOT IN ('pg_catalog', 'information_schema')
ORDER BY pg_relation_size(C.oid) DESC
LIMIT 5;
relation | size
-------------------------------------------+---------
public.proxy_package_download | 1999 MB
public.organization_package_download | 475 MB
public.organization_package_download_pkey | 83 MB
public.proxy_package_idx | 82 MB
public.proxy_download_date_idx | 80 MB
(5 Zeilen)
Apparently these tables are effectively log files for package downloads?
Assuming that these aren't necessary for operation, is there a way to disable this logging, or a way to delete old entries from these tables? Would it be safe to manually delete old records directly in the database, e.g. with delete from from proxy_package_download where date < now() - '1 year'::interval?
The text was updated successfully, but these errors were encountered:
In our
repman
instance, there are two large tablesproxy_package_download
andorganization_package_download
, which consume a lot of disk space and increase the size of our daily database dumps:Apparently these tables are effectively log files for package downloads?
Assuming that these aren't necessary for operation, is there a way to disable this logging, or a way to delete old entries from these tables? Would it be safe to manually delete old records directly in the database, e.g. with
delete from from proxy_package_download where date < now() - '1 year'::interval
?The text was updated successfully, but these errors were encountered: