MDL-34372: Fix query in backup_cron_helper so it works on Postgres 8.3