Re: Pg 15 devel crashes when fetching data from table using cursor
В списке pgsql-bugs по дате отправления:
| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера