Re: Fixed pg_class refcache leak when the meta tuple in pg_class in invalid.
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Fixed pg_class refcache leak when the meta tuple in pg_class in invalid. |
| Дата | |
| Msg-id | 1066.1480118278@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Fixed pg_class refcache leak when the meta tuple in pg_class in invalid. (Ming Li <mli@apache.org>) |
| Ответы |
Re: Fixed pg_class refcache leak when the meta tuple in
pg_class in invalid.
|
| Список | pgsql-hackers |
Ming Li <mli@apache.org> writes:
> In some cases the meta tuple in pg_class for a specific relation is
> invalid, which will cause relcache leak, and then report warning:
> WARNING: relcache reference leak: relation "pg_class" not closed.
> The diff file in the attachment can fix this problem.
I'm confused. RelationBuildDesc doesn't open pg_class and shouldn't
be responsible for closing it either; both of those things happen in
ScanPgRelation, leaving no apparent scope for a leak such as you suggest.
Moreover, there's no variable named pg_class_relation in this whole file,
so your patch wouldn't even compile.
Could you show us a test case that provokes the warning you see?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера