Re: destroyed db/index (corruption)

Поиск
Список
Период
Сортировка
От Michael Monnerie
Тема Re: destroyed db/index (corruption)
Дата
Msg-id 200702052236.13498@zmi.at
обсуждение исходный текст
Ответ на Re: destroyed db/index (corruption)  (Achilleas Mantzios <achill@matrix.gatewaynet.com>)
Ответы Re: destroyed db/index (corruption)  (Achilleas Mantzios <achill@matrix.gatewaynet.com>)
Список pgsql-admin
On Montag, 5. Februar 2007 15:22 Achilleas Mantzios wrote:
> This ERROR is normally thrown when you *try* to violate a unique
> constraint. Can you demonstrate the presence of the UNIQUE constraint
> on your table and the pair of identical key values rows?
> Post a description (\d) of your table, and then the select stmt which
> return the 2 bad rows.

Kalispera Achilleas,

I will do this soon. Just now I'm upgrading that VM from SUSE 10.1 to
10.2, so later this night I'll reload the databases.

> I might be wrong, but i would bet the whole issue began because
> some rows were inserted by a client (other than the reloading psql)
> during reload but before the UNIQUE KEY DDL
> was executed, or smth like that, or simply because this bayes_seen
> value is attempted to be inserted again
> (for reasons beyond our scope)

No, I started those DBs fresh with the command

pg_restore -v pg.fulldump.bayes_power2u.sqlz | \
psql -U postgres bayes_pg3 -f -

Is there an easy way to find out which key is duplicated while I have
that DB running? The log doesn't show it, and the last time I did
reload with trial-and-error:
- start reload
- it stops somewhere complaining about line 34587328 or similiar
- make some tail & head foo, or vi, to delete the one duplicate line
- start again...

It would be nice to have a simpler process. Could it be that the stored
procedure could cause a problem? I took all that from the SpamAssassin
Wiki, without modification.

mfg zmi
--
// Michael Monnerie, Ing.BSc    -----      http://it-management.at
// Tel: 0676/846 914 666                      .network.your.ideas.
// PGP Key:        "curl -s http://zmi.at/zmi4.asc | gpg --import"
// Fingerprint: EA39 8918 EDFF 0A68 ACFB  11B7 BA2D 060F 1C6F E6B0
// Keyserver: www.keyserver.net                   Key-ID: 1C6FE6B0

Вложения

В списке pgsql-admin по дате отправления:

Предыдущее
От: Mario
Дата:
Сообщение: Res: Moving a table to another directory
Следующее
От: "Karthikeyan Sundaram"
Дата:
Сообщение: Symbol lookup error