"Peter Brant" <Peter(dot)Brant(at)wicourts(dot)gov> writes:
> bigbird=# vacuum analyze "MaintCode";
> ERROR: duplicate key violates unique constraint
> "pg_statistic_relid_att_index"
Hm, can you see any rows in pg_statistic with duplicate values of
(starelid, staattnum)? If so it'd be useful to look at their
ctid/xmin/xmax/cmin/cmax values.
regards, tom lane