Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id A231DB5D832 for ; Sun, 29 May 2011 00:55:13 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 60960-01 for ; Sun, 29 May 2011 03:55:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 4C7BCB5DBD5 for ; Sun, 29 May 2011 00:55:06 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p4T3t1M1008073; Sat, 28 May 2011 23:55:01 -0400 (EDT) To: Greg Sabino Mullane cc: pgsql-bugs@postgresql.org Subject: Re: Failed pgbench: setrandom invalid maximum number 0 In-reply-to: <20110529031155.GA13070@core.home> References: <20110529031155.GA13070@core.home> Comments: In-reply-to Greg Sabino Mullane message dated "Sat, 28 May 2011 23:11:56 -0400" Date: Sat, 28 May 2011 23:55:01 -0400 Message-ID: <8072.1306641301@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/212 X-Sequence-Number: 30351 Greg Sabino Mullane writes: > Seeing the following on an old box I use for testing various > things. Thought it was something to do with my box at first, > but the problem seems to only occur in >= 8.4. But it's also > not pgbench alone, as it was working fine one day, and not the > next. Here's what I now get on 8.4, 9.0, and 9.1: > $ pgbench btest1 -n > setrandom: invalid maximum number 0 That's not valid syntax. Some versions of getopt() take it upon themselves to rearrange the switch order, some do not ... regards, tom lane