Re: log_autovacuum

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: log_autovacuum
Дата
Msg-id 20070417221804.GH15495@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: log_autovacuum  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: log_autovacuum
Список pgsql-patches
Alvaro Herrera wrote:
> Tom Lane wrote:
> > BTW, shouldn't the log entry distinguish whether this was VACUUM,
> > ANALYZE, or both?
>
> We don't actually log anything for ANALYZE (the logging code is in
> lazy_vacuum_rel).
>
> Maybe it should be in autovacuum.c.

The only problem with this is that we would have to export struct
LVRelStats definition from vacuumlazy.c and pass the struct back ...
which wouldn't directly work on ANALYZE.  What we could do is pass back
a "void *" pointer, which lazyvacuum.c or the analyze code knows how to
turn into a string.

I have no problem both ways.  Here is the current patch (logging code
still in lazy_vacuum_rel, log_autovacuum morphed into an integer
variable).

Opinions?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

Вложения

В списке pgsql-patches по дате отправления:

Предыдущее
От: "Simon Riggs"
Дата:
Сообщение: Re: log_autovacuum
Следующее
От: Tom Lane
Дата:
Сообщение: Re: log_autovacuum