undead index - Mailing list pgsql-general

From Jens Wilke
Subject undead index
Date
Msg-id 201105041411.15561.jens.wilke@affinitas.de
Whole thread Raw
Responses Re: undead index  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: undead index  (Cédric Villemain <cedric.villemain.debian@gmail.com>)
List pgsql-general
Hi,

pg_upgrade brakes with the following error:

pg_upgrade 8.4.5 to 9.0.4:
Restoring user relation files
  /data1/postgres/pgsql/foo/data_8.4/base/11564/2613           ^M
/data1/postgres/pgsql/foo/data_8.4/base/11564/2683
Could not find foo.bar_idx in old cluster

This index was deleted several weeks ago.

server_version | 8.4.5

foo=# select * from pg_class where relname = 'bar_idx';
(No rows)

after pg_dumpall|psql from 8.4 to 9.0 the undead index revived on the target
DB:

server_version | 9.0.4

foo=# select * from pg_class where relname = 'bar_idx';
-[ RECORD 1 ]---+------------------------------------
relname         | bar_idx
relnamespace    | 16409

Besides the question how this could happen, Is there another way to correct
this without using dump|restore?
I'd like to get pg_upgrade working.

Regards, Jens

pgsql-general by date:

Previous
From: kosna
Date:
Subject: postgresql not updating the sequence
Next
From: Raymond O'Donnell
Date:
Subject: Re: postgresql not updating the sequence