Re: Pg 15 devel crashes when fetching data from table using cursor

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Pg 15 devel crashes when fetching data from table using cursor
Дата
Msg-id 763986.1646965273@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Pg 15 devel crashes when fetching data from table using cursor  (Andres Freund <andres@anarazel.de>)
Список pgsql-bugs
Andres Freund <andres@anarazel.de> writes:
> I think we basically have to move the setting of PROC_IN_VACUUM to the last
> moment, when we've done everything else, and then force a new snapshot to be
> computed after.

Maybe we can add Assert(!PROC_IN_VACUUM) to catalog accesses?

But the main reason I'm concerned about this is that I fear people
will unthinkingly put catalog accesses into error paths, where
they might well not get exercised by any normal testing.
The poster child for this is something like

    if (unlikely-condition)
        elog(ERROR, "Houston, we have a problem with table %s",
             get_rel_name(relid));

Assertions are unlikely to help us catch that.

            regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Pg 15 devel crashes when fetching data from table using cursor
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Pg 15 devel crashes when fetching data from table using cursor