vacuumdb fails with error pg_statistic_relid_att_inh_index constraint violation after upgrade to 9.6

From: Swapnil Vaze <swapvaze28(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: vacuumdb fails with error pg_statistic_relid_att_inh_index constraint violation after upgrade to 9.6
Date: 2017-11-28 13:25:20
Message-ID: CABWf+yTFyZFgnuaLz1OVYdWMOPkeEH6BkvXGoTgBRuUqbS0SVw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

We have upgraded our database from 9.5 to 9.6 version.
After upgrade we ran vacuumdb command and we are getting following error:

vacuumdb: vacuuming of database "advdfat" failed: ERROR: duplicate key
value violates unique constraint "pg_statistic_relid_att_inh_index"
DETAIL: Key (starelid, staattnum, stainherit)=(1259, 1, f) already exists.

Can anyone help here?

--
Thanks & Regards,
Swapnil Vaze

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Robert Haas 2017-11-28 13:43:45 Re: ERROR: too many dynamic shared memory segments
Previous Message VENKTESH GUTTEDAR 2017-11-28 12:23:20 [GENERAL] - Regarding Schema ROLLBACK