1 [42000](50000) [Microsoft][SQL Server Native Client 10.0][SQL Server]ERROR ! Missing indexes: VPX_HIST_STAT1_169.IX_VPX_HIST_STAT1_169_TIME_ID; VPX_HIST_STAT1_169.PK_VPX_HIST_STAT1_169;
ERROR: Cannot execute statement(rc=-1).
Take a valid backup/snapshot of the vCenter Database before you proceed with the below steps:
1. Connect to the embedded Postgres Database by following the KB: Connecting to the embedded vPostgres Database in a Windows installed vCenter Server 6.x
2. Run the following commands to re-create the missing indexes :
CREATE INDEX IX_VPX_HIST_STAT1_169_TIME_ID ON VPX_HIST_STAT1_169(TIME_ID);
ALTER TABLE VPX_HIST_STAT1_169 ADD CONSTRAINT PK_VPX_HIST_STAT1_169 PRIMARY KEY (COUNTER_ID, TIME_ID);