Re: autovacuum "connections" are hidden
От | Alvaro Herrera |
---|---|
Тема | Re: autovacuum "connections" are hidden |
Дата | |
Msg-id | 20060518232021.GA4444@surnet.cl обсуждение исходный текст |
Ответ на | Re: autovacuum "connections" are hidden (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: autovacuum "connections" are hidden
|
Список | pgsql-general |
Tom Lane wrote: > Alvaro Herrera <alvherre@commandprompt.com> writes: > > The problem is that pgstat_bestart (called in InitPostgres, which > > autovac calls) deliberately ignores autovacuum, due to not having a > > client address. We could create a fake client address (which doesn't > > seem easy to do), or we could change pg_stat_activity to use an OUTER > > JOIN. Not sure what other options are there. > > Seems like the client address should read as NULL. Not sure if that's > hard or not. Changing the view definition is no fun (at least for an > 8.1 back-patch) because it'd require initdb. This seems to work for me. I'd appreciate input, as I'm not sure how would other archs (or even my own) cope with the zeroed client address trick (note the memcmp ...) This is the 8.1 version of the patch; I haven't looked at HEAD yet, but I think it's slightly different. (The actual activity reported is a bit bogus ... I'd appreciate suggestions for better wording. Do I waste cycles in obtaining the relname? My answer is yes. What if there are multiple rels (a case currently not exercised)?. Should it explicitly say that it's autovacuum? My answer is no.) -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.
Вложения
В списке pgsql-general по дате отправления: