Skip to content

Commit

Permalink
fix: condition to vacuum catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolife999 committed Nov 25, 2024
1 parent 54f782b commit edc47e4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,10 @@ public void maintenancePgCatalog(Connection connexion, String type) {
for (String t : gb.getColumnValues("relname")) {
requete.append(FormatSQL.vacuumSecured(t, type));
}
executeImmediate(connexion, requete.toString());
if (requete.length()>0)
{
executeImmediate(connexion, requete.toString());
}
} catch (Exception ex) {
LoggerHelper.error(LOGGER, ex);
} finally {
Expand Down

0 comments on commit edc47e4

Please sign in to comment.