Re: [SQL] Duplicate tuples with unique index
От | Bruce Momjian |
---|---|
Тема | Re: [SQL] Duplicate tuples with unique index |
Дата | |
Msg-id | 200001252008.PAA20686@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: [SQL] Duplicate tuples with unique index (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-sql |
> Palle Girgensohn <girgen@partitur.se> writes: > > 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 > > Ugh. Yup, your pg_statistic table is corrupted all right. > > What you may have to do is pg_dump that database, destroydb/createdb, > and reload. > > I have a possible shortcut for you, but I *strongly* suggest that you > pg_dump first in case it doesn't work! After making your backup dump, > stop the postmaster and truncate the broken database's pg_statistic > file to zero length: > cp /dev/null .../data/base/yourdb/pg_statistic > Then restart the postmaster and see if you can vacuum analyze the > broken database. If so, you are good to go; if not, it's time to > reload that database. > Running pg_upgrade is another option. -- Bruce Momjian | http://www.op.net/~candle pgman@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
В списке pgsql-sql по дате отправления: