Issue #3494471 by tgauges, smustgrave: Renaming a table containing "drupal_" in the name with multiple indexes fails on PostreSQL (cherry picked from commit cbfd48e0)