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

Re: Failed pgbench: setrandom invalid maximum number 0

From: Greg Sabino Mullane <greg(at)endpoint(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: Failed pgbench: setrandom invalid maximum number 0
Date: 2011-05-30 20:53:09
Message-ID: 20110530205308.GE3012@core.home (view raw or flat)
Thread:
Lists: pgsql-bugs
> setrandom: invalid maximum number 0

Okay, nevermind, user error: some other process was deleting a 
row from pgbench_branches, and the pgbench.c happily set scale 
to 0 from the 'select count(*) from pgbench_branches' query 
inside of it, until it gives the totally not-helpful error 
seen above later on as it sets :scale to 0, multiplies the tpc_b 
default number of branches by zero, and then complains when the 
minimum number of branches (1) is less than the max allowed (0). 

Oddly enough, the code checks for the count(*) < 0 but not <= 0.

-- 
Greg Sabino Mullane greg(at)endpoint(dot)com
End Point Corporation
PGP Key: 0x14964AC8

In response to

pgsql-bugs by date

Next:From: Alvaro HerreraDate: 2011-05-30 21:18:20
Subject: Re: Unlogged tables cannot be truncated twice
Previous:From: Alvaro HerreraDate: 2011-05-30 17:02:12
Subject: Re: 9.1 plperlu bug with null rows in trigger hash

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