Re: Reindex does not finish 8.2.6

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Reindex does not finish 8.2.6
Дата
Msg-id 20080313174049.GB6645@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Reindex does not finish 8.2.6  (Clodoaldo <clodoaldo.pinto.neto@gmail.com>)
Ответы Re: Reindex does not finish 8.2.6  (Clodoaldo <clodoaldo.pinto.neto@gmail.com>)
Re: Reindex does not finish 8.2.6  (Clodoaldo <clodoaldo.pinto.neto@gmail.com>)
Список pgsql-general
Clodoaldo escribió:
> 2008/3/13, Alvaro Herrera <alvherre@commandprompt.com>:
> > Clodoaldo escribió:
> >
> >
> >  > Now what is happening is that reindex does not finish even with a
> >  > small 6,500 rows table and after a reboot. In top there is no CPU or
> >  > memory usage by postmaster and vmstat shows no disk activity.
> >
> > Hmm, are you vacuuming the system catalogs appropriately?
>
> If a simple vacuum in instead of a vacuum full is appropriate then yes
> the db is vacuumed every three hours after each bulk insert/delete.

As superuser?  Take a look at whether relations are skipped during
vacuum.

Try vacuuming pg_class, pg_index, pg_attribute manually and see if that
makes the problem go away.  If it doesn't, then my guess is that it's
time to see what the hanging process is doing -- try an strace on it, or
attaching it with gdb and getting a backtrace.  (I hope your binaries
have debug symbols).

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Clodoaldo
Дата:
Сообщение: Re: Reindex does not finish 8.2.6
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: porting vb6 code to pgplsql, referencing fields