#261 detect index scans to avoid patching the partition storage engine