Discourse on RDS periodically results into many Lock:relation waits for create GIN index sessions

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.