How did I not know about the magic of "pg_repack -d mastodon_production"
!
How did I not know about the magic of "pg_repack -d mastodon_production"
!
@jimcarroll Adding context:
"pg_repack is a PostgreSQL extension which lets you remove bloat from tables and indexes, and optionally restore the physical order of clustered indexes. Unlike CLUSTER and VACUUM FULL it works online, without holding an exclusive lock on the processed tables during processing. pg_repack is efficient to boot, with performance comparable to using CLUSTER directly."
@markstos Thanks for putting some context on my post! Saved 6GB on my 40GB self-host server!
@michael Carefully checked that out with the docs before I started. Also made a snapshot backup before. And have a full server backup always available. Have had lots of booms before.
This from @michael was an excellent guide.
@jimcarroll gotta be careful with this: if you don’t have enough free disk space it’ll go kaboom 💥
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.