דיון על RDS גורם באופן תקופתי להמתנות רבות מסוג Lock:relation עבור הפעלות אינדקס GIN

I won’t be able to help you with the specific issue you’re raising, but is there a reason you’re on such an old Discourse version? The more you wait, the more likely you may face issues when upgrading. Ideally, you should always be on the last version. Additionally, updates occasionally include security fixes.