Allow more work_mem when upgrading.