File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1867,8 +1867,10 @@ repack_table_indexes(PGresult *index_details)
1867
1867
getstr (index_details , i , 0 ));
1868
1868
}
1869
1869
1870
- if (dryrun )
1871
- return true;
1870
+ if (dryrun ) {
1871
+ ret = true;
1872
+ goto done ;
1873
+ }
1872
1874
1873
1875
/* If we did not successfully repack any indexes, e.g. because of some
1874
1876
* error affecting every CREATE INDEX attempt, don't waste time with
@@ -1911,7 +1913,6 @@ repack_table_indexes(PGresult *index_details)
1911
1913
ret = true;
1912
1914
1913
1915
drop_idx :
1914
- CLEARPGRES (res );
1915
1916
resetStringInfo (& sql );
1916
1917
initStringInfo (& sql_drop );
1917
1918
#if PG_VERSION_NUM < 90200
@@ -1935,6 +1936,11 @@ repack_table_indexes(PGresult *index_details)
1935
1936
}
1936
1937
termStringInfo (& sql_drop );
1937
1938
termStringInfo (& sql );
1939
+
1940
+ done :
1941
+ CLEARPGRES (res );
1942
+ free (repacked_indexes );
1943
+
1938
1944
return ret ;
1939
1945
}
1940
1946
You can’t perform that action at this time.
0 commit comments