Email or username:

Password:

Forgot your password?
Eugen Rochko

To other Mastodon sysadmins: Check what pg_repack can do for you, especially if your server has been around for a really long time. PostgreSQL indexes get bloated over time and VACUUM does nothing about it. pg_repack can re-build indexes without downtime.

1 comment
Ben Lubar (any pronouns)

@Gargron how does that differ from rebuild index concurrently

Eugen Rochko

I shaved off 40 GB from the mastodon.social database just by using pg_repack on indexes tonight.

IVaBCN

@Gargron how I wish I understood what you are saying! How glad I am that you who do use your knowledge to help us have a voice!

Bálint Szilakszi

@Gargron postgres 12 has reindex concurrently

Jörn Franke

@Gargron Also do not forget to regularly update to the latest Postgres version. The latest (17.0) provides especially for vacuum some interesting improvements: postgresql.org/docs/17/release

Go Up