Re: indexes no longer used after shutdown during reindexing

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Matt Dew <mattd(at)consistentstate(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: indexes no longer used after shutdown during reindexing
Date: 2012-01-11 23:29:35
Message-ID: 28990.1326324575@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Matt Dew <mattd(at)consistentstate(dot)com> writes:
> I have a database that was shut down, cleanly, during an 'reindex
> table' command. When the database came back up, queries against that
> table started doing sequential scans instead of using the indexes as
> they had been up until that point.

What exactly is your definition of a "clean shutdown"? At the very
least you'd have had to abort the session running the reindex. Also,
what PG version is this, and what are the index definitions?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Johnston 2012-01-11 23:43:51 Re: Enumeration of tables is very slow in largish database
Previous Message Kirill Müller 2012-01-11 23:27:58 Re: Enumeration of tables is very slow in largish database