Re: BUG #1286: indices not used after a pg_restore

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Federico Di Gregorio" <fog(at)initd(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1286: indices not used after a pg_restore
Date: 2004-10-14 10:54:55
Message-ID: 27959.1097751295@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org> writes:
> 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.

I do not believe that you remembered to ANALYZE after restore.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Federico Di Gregorio 2004-10-14 11:06:39 Re: BUG #1286: indices not used after a pg_restore
Previous Message PostgreSQL Bugs List 2004-10-14 09:26:00 BUG #1286: indices not used after a pg_restore