Infinite loop during postgres upgrade

The PR has been merged :+1:

「いいね!」 1