Upgrading from 9.0 to 9.1 fails on DB migration with postgresql

Thanks for reporting the problem.
We’ll increase the limit in the next release v9.2, which is planned for November: https://jira.sonarsource.com/browse/SONAR-15422

I’d recommend you try to find the offending value as you said, or wait for 9.2 to be released.