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

Amended by stronk7@moodle.org to use uppercase SQL keywords.

dilawar/moodle