@@ -1626,7 +1626,6 @@ repack_one_index(Oid table, const char *table_name, Oid index, const char *schem
1626
1626
{
1627
1627
ereport (ERROR , (errcode (EINVAL ),
1628
1628
errmsg ("unable to generate SQL to CREATE new index" )));
1629
- goto cleanup ;
1630
1629
}
1631
1630
create_idx = getstr (res , 0 , 0 );
1632
1631
CLEARPGRES (res );
@@ -1648,7 +1647,6 @@ repack_one_index(Oid table, const char *table_name, Oid index, const char *schem
1648
1647
" was interrupted and failed to clean up"
1649
1648
" the temporary objects. Please use \"DROP INDEX %s\""
1650
1649
" to remove this index." , temp_index .data )));
1651
- goto cleanup ;
1652
1650
}
1653
1651
CLEARPGRES (res );
1654
1652
@@ -1669,6 +1667,8 @@ repack_one_index(Oid table, const char *table_name, Oid index, const char *schem
1669
1667
pgut_command (connection , "SELECT repack.repack_index_swap($1)" , 1 , params );
1670
1668
pgut_command (connection , "COMMIT" , 0 , NULL );
1671
1669
1670
+ ret = true;
1671
+
1672
1672
drop_idx :
1673
1673
initStringInfo (& sql );
1674
1674
#if PG_VERSION_NUM < 90200
@@ -1678,9 +1678,7 @@ repack_one_index(Oid table, const char *table_name, Oid index, const char *schem
1678
1678
#endif
1679
1679
appendStringInfo (& sql , "%s" , temp_index .data );
1680
1680
command (sql .data , 0 , NULL );
1681
- ret = true;
1682
1681
1683
- cleanup :
1684
1682
CLEARPGRES (res );
1685
1683
termStringInfo (& sql );
1686
1684
return ret ;
@@ -1735,7 +1733,6 @@ repack_all_indexes(char *errbuf, size_t errsize)
1735
1733
ereport (ERROR ,
1736
1734
(errcode (EINVAL ),
1737
1735
errmsg ("index \"%s\" does not exist.\n" , r_index )));
1738
- goto cleanup ;
1739
1736
}
1740
1737
}
1741
1738
@@ -1769,7 +1766,8 @@ repack_all_indexes(char *errbuf, size_t errsize)
1769
1766
num = PQntuples (res );
1770
1767
if (num == 0 )
1771
1768
{
1772
- elog (WARNING , "\"%s\" does not have any indexes" , table_list .head -> val );
1769
+ elog (WARNING , "\"%s\" does not have any indexes" ,
1770
+ table_list .head -> val );
1773
1771
ret = true;
1774
1772
goto cleanup ;
1775
1773
}
0 commit comments