"Peter Brant" <[EMAIL PROTECTED]> 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 ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match