Disallow the cost balancing code from resulting in a zero cost limit, which
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 8 Jun 2007 21:21:28 +0000 (21:21 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 8 Jun 2007 21:21:28 +0000 (21:21 +0000)
commita4d58727191419b89126f06f23237986cae966fc
treeac68091e0f275327086ffa4a8e0d9ff01da4a8cf
parent2b438c12cca443fe69852e9b0c678893c8686ac0
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.l4V9E6JA094603@wwwmaster.postgresql.org>.
src/backend/postmaster/autovacuum.c