-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Description
Self-Hosted Version
24.8.01 d52e8e
CPU Architecture
x86_x64
Docker Version
24.0.2, build cb74dfc
Docker Compose Version
2.9.0
Machine Specification
- My system meets the minimum system requirements of Sentry
Steps to Reproduce
no clue how it got to this situation
Expected Result
healthy postgres
Actual Result
from Postgres table
table_name | total_size | data_size | index_size
------------------------------------------------+------------+------------+------------
nodestore_node | 301 GB | 10 GB | 291 GB
SELECT
schemaname, relname AS table_name,
round(100 * (pg_total_relation_size(relid) - pg_relation_size(relid)) / pg_total_relation_size(relid)::numeric, 2) AS index_bloat_percent
FROM pg_statio_user_tables
WHERE relname = 'nodestore_node';
schemaname | table_name | index_bloat_percent
------------+----------------+---------------------
public | nodestore_node | 96.65
I tried running pg-repack
but it doesn't run because it says nodestore_node is corrupted.
Could this be the reason why this table is so big? what are the solutions for this case? At the moment I am doing partial selects to see where it breaks on this table but it has loads of data and may take days to find it
Event ID
No response
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status
Status
No status