Symptoms:
ERROR: database is not accepting commands to avoid wraparound data loss in database "VCDB" HINT: Stop the postmaster and use a standalone back end to vacuum that database.
You might also need to commit or rollback old prepared transactions.
VMware vCenter Server 6.x
VMware vCenter Server 7.x
VMware vCenter Server 8.x
To resolve this issue, run Postgres in single-user mode and vacuum the database.
NOTE: Before applying the steps below, please take a backup or an offline-snapshot (in powered-off state) of the vCenter Server Appliance . If the vCenter is part of a Linked Mode replication setup, please backup/snapshot all replicating nodes as well. Please refer: VMware vCenter in Enhanced Linked Mode pre-changes snapshot (online or offline) best practice