pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Sabino Mullane <greg@endpoint.com>
To: pgsql-bugs@postgresql.org
Subject: Re: Failed pgbench: setrandom invalid maximum number 0
Date: Mon, 30 May 2011 16:53:09 -0400
Message-ID: <20110530205308.GE3012@core.home> (raw)
In-Reply-To: <8072.1306641301@sss.pgh.pa.us>
References: <20110529031155.GA13070@core.home>
	<8072.1306641301@sss.pgh.pa.us>

> 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@endpoint.com
End Point Corporation
PGP Key: 0x14964AC8

view thread (5+ messages)

Message-ID: <20110530205308.GE3012@core.home>
Permalink:  ../20110530205308.GE3012@core.home/
Also on:    postgresql.org/message-id/20110530205308.GE3012@core.home

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: greg@endpoint.com
  Subject: Re: Failed pgbench: setrandom invalid maximum number 0
  In-Reply-To: <20110530205308.GE3012@core.home>
  References: <20110529031155.GA13070@core.home> <8072.1306641301@sss.pgh.pa.us> <20110530205308.GE3012@core.home>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox