Re: autovacuum crash due to null pointer

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: autovacuum crash due to null pointer
Дата
Msg-id 20080717171753.GI3934@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: autovacuum crash due to null pointer  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: autovacuum crash due to null pointer  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > I'm having a hard time reproducing this problem; I added a pg_usleep()
> > just before get_rel_name to have the chance to drop the table, but
> > strangely enough it doesn't return NULL.  It seems that the cache entry
> > is not getting invalidated.  Maybe there's something else that's needed
> > to reproduce the crash.
>
> I think cache invals would get noticed at points where we had to open
> some relation, so you probably need the sleep somewhere earlier than
> that.  Or just throw in an AcceptInvalidationMessages() after the sleep.

AcceptInvalidationMessages did the trick.

Patches for 8.3 and HEAD attached.

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

Вложения

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

Предыдущее
От: "David E. Wheeler"
Дата:
Сообщение: Re: PATCH: CITEXT 2.0 v4
Следующее
От: "Jonah H. Harris"
Дата:
Сообщение: Re: [PATCH]-hash index improving