Re: Odd pg dump error: cache lookup failure

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Odd pg dump error: cache lookup failure
Дата
Msg-id 2762819.1598385063@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Odd pg dump error: cache lookup failure  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Odd pg dump error: cache lookup failure  (Wells Oliver <wells.oliver@gmail.com>)
Re: Odd pg dump error: cache lookup failure  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список pgsql-admin
I wrote:
> Wells Oliver <wells.oliver@gmail.com> writes:
>> And refreshing materialized views during the dump process wouldn't cause
>> this?

> matviews can't be part of inheritance trees AFAIR, so we'd need some
> other theory to explain it that way.

Oh wait a second.  Matviews can have indexes, and getTables doesn't
lock them (because we don't allow LOCK TABLE on views).  So it's fairly
clear that you could get here with no lock if 1152770777 is a matview.
However, it's still not entirely clear how a refresh could trigger
the observed error.  We certainly aren't changing the matview's OID
when we do that.  Do we rewrite the pg_attribute entries anyway?
And even if we do, why would there be a problem?

Are your refreshes using CONCURRENTLY?

            regards, tom lane



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

Предыдущее
От: Wells Oliver
Дата:
Сообщение: Re: Odd pg dump error: cache lookup failure
Следующее
От: Wells Oliver
Дата:
Сообщение: Re: Odd pg dump error: cache lookup failure