Re: Failed Assert in pgstat_assoc_relation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Failed Assert in pgstat_assoc_relation
Дата
Msg-id 1874115.1669960128@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Failed Assert in pgstat_assoc_relation  (Andres Freund <andres@anarazel.de>)
Ответы Re: Failed Assert in pgstat_assoc_relation  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2022-12-02 00:08:20 -0500, Tom Lane wrote:
>> Just the table-to-view hack.  I'm not aware that there are any other
>> cases, and it seems hard to credit that there ever will be any.

> I can see some halfway credible scenarios. E.g. converting a view to a
> matview, or a table into a partition. I kind of wonder if it's worth keeping
> the change, just in case we do - it's not that easy to hit...

I'd suggest putting in an assertion that the relkind isn't changing,
instead.  When and if somebody makes a credible feature patch that'd
require relaxing that, we can see what to do.

(There's a couple of places in rewriteHandler.c that could
perhaps be simplified, too.)

            regards, tom lane



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

Предыдущее
От: John Naylor
Дата:
Сообщение: Re: [PATCH] Add native windows on arm64 support
Следующее
От: Bharath Rupireddy
Дата:
Сообщение: Re: Introduce a new view for checkpointer related stats