Closed thisIsLoading closed 4 months ago
Hi @thisIsLoading, I'm not really sure how to reproduce the error (the method works fine if I remove the id
column from pghero_space_stats
), but in general, using a hypertable to store space stats isn't supported.
hi @ankane maybe you misunderstood. i do not store the stats in a hypertable. the rails db just happens to have a hypertable.
i installed it exactly like you pointed out in the readme
and my thought was about that these OTHER hypertables might cause pghero to error out, but i dont know.
I'm able to reproduce the error if I delete the pghero_space_stats
table, so I think that's the actual issue.
I see the same error using the pghero from GitHub/main. The database is Fly.io's Postgres
Just ran into the same issue, but it seems to be a Rails bug (at least Rails 7.1.1, that's my case). UPD: everything was way simpler — I forgot to create the query_stats table.
Hi,
i was trying to capture space stats but this fails with:
pghero is install via
gem 'pghero', github: 'ankane/pghero'
i could imagine that the error might be related to the fact that i am using timescaldb hypertables (which dont have an ID column)?
is there a way to still get those stats?
thanks