Sidekiq lent + Postmaster utilisant plus de 95 % du CPU (32 cœurs) après la mise à niveau de la version 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