From: | Palle Girgensohn <girgen(at)partitur(dot)se> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Patrik Kudo <kudo(at)partitur(dot)se>, "pgsql-sql(at)postgreSQL(dot)org" <pgsql-sql(at)postgreSQL(dot)org> |
Subject: | Re: [SQL] Duplicate tuples with unique index |
Date: | 2000-01-25 16:03:05 |
Message-ID: | 388DC939.1335143@partitur.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Tom Lane wrote:
>
> Patrik Kudo <kudo(at)partitur(dot)se> writes:
> > db=> vacuum ;
> > NOTICE: Rel pg_statistic: TID 1/93: OID IS INVALID. TUPGONE 0.
> > NOTICE: Index html_text_idx: NUMBER OF INDEX' TUPLES (1193) IS NOT THE
> > SAME AS HEAP' (1258)
> > ERROR: Cannot insert a duplicate key into a unique index
>
> Given the reference to pg_statistic, I wonder if you aren't getting
> burnt by the recently-discovered bug wherein VACUUM ANALYZE tries to
> create pg_statistic tuples that are too long. I recommend (a) patch
> vacuum.c (see Dirk Lutzebaeck's nearby message); then (b) drop and
> recreate html_text_idx; finally (c) DELETE FROM pg_statistic and
> then VACUUM ANALYZE to rebuild it. Good luck!
>
> regards, tom lane
>
> ************
Unfotunately, it doesn't quite work:
pp=> vacuum analyze;
NOTICE: Rel pg_statistic: TID 1/93: OID IS INVALID. TUPGONE 0.
VACUUM
pp=> delete from pg_statistic;
ERROR: heap_delete: (am)invalid tid
pp=>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2000-01-25 16:26:12 | Re: [SQL] Duplicate tuples with unique index |
Previous Message | Don Baccus | 2000-01-25 15:41:38 | Re: [HACKERS] DISTINCT ON: speak now or forever hold your peace |