Re: [HACKERS] 6.5.2 vacuum NOTICE messages

Поиск
Список
Период
Сортировка
От Vadim Mikheev
Тема Re: [HACKERS] 6.5.2 vacuum NOTICE messages
Дата
Msg-id 37FAA2F4.4F45EDA4@krs.ru
обсуждение исходный текст
Ответ на 6.5.2 vacuum NOTICE messages  (Oleg Bartunov <oleg@sai.msu.su>)
Список pgsql-hackers
Oleg Bartunov wrote:
> 
> Hi,
> 
> I have a cron job which vaccuming database every hour
> (say for testing purposes) and sometimes I get following messages:
> 
> NOTICE:  Index hits_pkey: NUMBER OF INDEX' TUPLES (10003) IS NOT THE SAME AS
> HEAP' (10004)
> NOTICE:  Index hits_pkey: NUMBER OF INDEX' TUPLES (10003) IS NOT THE SAME AS
> HEAP' (10004)
> 
> This happens on Linux 2.0.37, postgresql 6.5.2
> 
> What does it means ? Why it's happens not every time script runs ?
> What's the best way to get rid off this problem except dump/reload ?

Re-build indices.

> 
> The script is here:
> 
> /usr/local/pgsql/bin/psql -tq discovery <vacuum_hits.sql
> 
> vacuum_hits.sql:
> 
> begin work;
> vacuum analyze hits(msg_id);

You MUST NOT run vacuum inside BEGIN/END!

> drop index hits_pkey;
> create unique index hits_pkey on hits(msg_id);
> end work;

Vadim


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

Предыдущее
От: The Hermit Hacker
Дата:
Сообщение: Re: [HACKERS] Re: [GENERAL] Re: [PHP3] Re: PostgreSQL vs Mysql comparison
Следующее
От: Vince Vielhaber
Дата:
Сообщение: libpq++ doc error?