Skip site navigation (1) Skip section navigation (2)

pgsql: Disallow the cost balancing code from resulting in a zero cost

From: alvherre(at)postgresql(dot)org (Alvaro Herrera)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Disallow the cost balancing code from resulting in a zero cost
Date: 2007-06-08 21:21:28
Message-ID: 20070608212128.A9F199FC035@postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Disallow the cost balancing code from resulting in a zero cost limit, which
causes a division-by-zero error in the vacuum code.  This can happen when there
are more workers than cost limit units.

Per report from Galy Lee in
<200705310914(dot)l4V9E6JA094603(at)wwwmaster(dot)postgresql(dot)org>.

Modified Files:
--------------
    pgsql/src/backend/postmaster:
        autovacuum.c (r1.48 -> r1.49)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/postmaster/autovacuum.c.diff?r1=1.48&r2=1.49)

pgsql-committers by date

Next:From: User EggyknapDate: 2007-06-09 04:59:36
Subject: pgsnmpd - pgsnmpd: Add more documentation
Previous:From: Alvaro HerreraDate: 2007-06-08 21:09:49
Subject: pgsql: Avoid passing zero as a value for vacuum_cost_limit, because it's

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group