Sidekiq lento + Postmaster che utilizza oltre il 95% di CPU (32 core) dopo l'aggiornamento della versione di PostgreSQL

Maybe try running:

VACUUM FULL VERBOSE;

and (assuming your db name is ‘discourse’ which is default):

REINDEX DATABASE discourse;

This might be better than normal reindex, but I haven’t tested it: PostgreSQL 12 update