NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.
The pending fix for CONF-21909 includes an upgraded Hibernate which logs warnings if it's about to try and create an index which may be a duplicate. We should extract that improvement into a separate merge to master in case CONF-21909 is held up.
Incorporate check for pre-existing indexes
Deadlocks in Oracle 11G due to missing indexes