| От | Alvaro Herrera |
|---|---|
| Тема | Re: Autovacuum of pg_database |
| Дата | |
| Msg-id | 20160506160547.GA212152@alvherre.pgsql обсуждение исходный текст |
| Ответ на | Re: Autovacuum of pg_database (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Autovacuum of pg_database
|
| Список | pgsql-admin |
Tom Lane wrote: > Alvaro Herrera <alvherre@2ndquadrant.com> writes: > > These are all shared catalogs. There are others, so you may still see > > more. We got another report for pg_database > > https://www.postgresql.org/message-id/A9D40BB7-CFD6-46AF-A0A1-249F04878A2A%40amazon.com > > so I suppose there really is a bug. I don't know what's going on there. > > I think it's pretty obvious: autovacuum.c's rule for detecting whether > some other worker is already processing table X is wrong when X is a > shared table. I propose the attached patch. Hmm, I have pretty much the same patch, except I added the flag to struct autovac_table and have it populated by table_recheck_autovac. Haven't tested this yet, which is why I hadn't posted it. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера