Re: BUG #16045: vacuum_db crash and illegal memory alloc afterpg_upgrade from PG11 to PG12
В списке pgsql-bugs по дате отправления:
| От | Tomas Vondra |
|---|---|
| Тема | Re: BUG #16045: vacuum_db crash and illegal memory alloc afterpg_upgrade from PG11 to PG12 |
| Дата | |
| Msg-id | 20191013001032.lqrn4kqaovhrf77l@development обсуждение исходный текст |
| Ответ на | Re: BUG #16045: vacuum_db crash and illegal memory alloc afterpg_upgrade from PG11 to PG12 (Tomas Vondra <tomas.vondra@2ndquadrant.com>) |
| Ответы |
Re: BUG #16045: vacuum_db crash and illegal memory alloc after pg_upgrade from PG11 to PG12
|
| Список | pgsql-bugs |
OK, here is an updated patch, with the recursive CTE. I've done a fair amount of testing on it on older versions (up to 9.4), and it seems to work just fine. Another thing that I noticed is that the query does not need to look at RELKIND_COMPOSITE_TYPE, because we only really care about cases when sql_identifier is stored on-disk. Composite type alone does not do that, and the CTE includes OIDs of composite types that we then check against relations and matviews. Barring objections, I'll push this early next week. BTW the query (including the RELKIND_COMPSITE_TYPE) was essentially just a lightly-massaged copy of old_9_6_check_for_unknown_data_type_usage, so that seems wrong too. The comment explicitly says: * Also check composite types, in case they are used for table columns. but even a simple "create type c as (a unknown, b int)" without any table using it enough to trigger the failure. But maybe it's intentional, not sure. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера