BUG #1286: indices not used after a pg_restore

From: "PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1286: indices not used after a pg_restore
Date: 2004-10-14 09:26:00
Message-ID: 20041014092600.2ABE65A3982@www.postgresql.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 1286
Logged by: Federico Di Gregorio

Email address: fog(at)initd(dot)org

PostgreSQL version: 7.4.5

Operating system: Debian GNU/Linux sarge

Description: indices not used after a pg_restore

Details:

We have a (big) database with a lot of functional indices (the indices are
quite strange but should replicate an old ISAM sorting procedure).

After a pg_dump/pg_restore (using the tar format) queries that were using
the indices don't use them anymore until the indices are dropped and
recreated. After that the indices are used the correct way.

Note that after the pg_restore we also tried a complete
VACUUM/ANALYZE/REINDEX but the situation does not change. The indices are
not used until dropped and recreated.

Please, if you discuss this on the bugs mailing list keep me in cc:.

Example of one of the indices:

CREATE INDEX "MOVIMENTII5" ON movimenti USING btree
(upper(((to_char("TYPE_REF", 'S0000000000'::text) || to_char("IDREF",
'S0000000000'::text)) || to_char("IDMOVIMENT", 'S0000000000'::text))));

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2004-10-14 10:54:55 Re: BUG #1286: indices not used after a pg_restore
Previous Message Magnus Hagander 2004-10-14 07:55:33 Re: BUG #1273: bad path for english.stop in tsearch2