pgsql: Add the "recheck" logic to autovacuum worker code.

Поиск
Список
Период
Сортировка
От alvherre@postgresql.org (Alvaro Herrera)
Тема pgsql: Add the "recheck" logic to autovacuum worker code.
Дата
Msg-id 20070328221713.1E00D9FBB3D@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Add the "recheck" logic to autovacuum worker code.  The worker first builds
its table list and then rechecks pgstat before vacuuming each table to
verify that no one has vacuumed the table in the meantime.

In the current autovacuum world this only means that a worker will not
vacuum a table that a user has vacuumed manually after the worker started.
When support for multiple autovacuum workers is introduced, this will reduce
the probability of simultaneous workers on the same database doing redundant
work.

Modified Files:
--------------
    pgsql/src/backend/postmaster:
        autovacuum.c (r1.39 -> r1.40)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/autovacuum.c.diff?r1=1.39&r2=1.40)
        pgstat.c (r1.150 -> r1.151)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/pgstat.c.diff?r1=1.150&r2=1.151)

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

Предыдущее
От: mha@pgfoundry.org (User Mha)
Дата:
Сообщение: pginstaller - pginst: Fix another warning msvc caught.
Следующее
От: neilc@postgresql.org (Neil Conway)
Дата:
Сообщение: pgsql: Replace 4-clause licensed blf.[ch] with blowfish implementation