Infinite loop during postgres upgrade

The PR has been merged :+1:

1 « J'aime »