deleteOldRevisions.php calls Maintenance.php function purgeRedundantText().
Running in on a big DB (more than 200.000 pages) the script dies like following:
Il database ha restituito il seguente errore "1153: Got a packet bigger than
'max_allowed_packet' bytes (localhost)".
I think the SQL reauests including "NOT IN ($set)" or "IN ($set)" are responsible for that because they can only accept a few hundreds or thousands of ids.
Please confirm if I'm right.