Re: New VACUUM FULL crashes on temp relations

Поиск
Список
Период
Сортировка
От Takahiro Itagaki
Тема Re: New VACUUM FULL crashes on temp relations
Дата
Msg-id 20100202142831.9A8A.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответ на Re: New VACUUM FULL crashes on temp relations  (Takahiro Itagaki <itagaki.takahiro@oss.ntt.co.jp>)
Ответы Re: New VACUUM FULL crashes on temp relations
Список pgsql-hackers
Takahiro Itagaki <itagaki.takahiro@oss.ntt.co.jp> wrote:

> > TRAP: FailedAssertion("!(typeNamespace == typ->typnamespace)", File:
> > "pg_type.c", Line: 658)

It comes from swapping toast relations:
  DEBUG:  typeNamespace mismatch: 99 (pg_toast) vs. 16386 (pg_toast_temp_2)

AFAICS, the assertion is broken, but the code is correct. We just need to
adjust the expression in the assertion.
Patch attached, including new regression tests for clustering a temp table.

> I see the same assertion failure on 8.4.2, too.

I'll go for backpatcting if the attached fix is correct. Comments welcome.

Regards,
---
Takahiro Itagaki
NTT Open Source Software Center


Вложения

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

Предыдущее
От: KaiGai Kohei
Дата:
Сообщение: Re: Largeobject Access Controls (r2460)
Следующее
От: Jesper Krogh
Дата:
Сообщение: Re: Make TOAST_TUPLES_PER_PAGE configurable per table.