This error is definitely related to a failed postgres upgrade.
Check out the meta topic to get the issue fixed.