Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z5bnt-0001KS-UW for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Jun 2015 15:32:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Z5bns-00010v-Ql for pgsql-bugs@arkaria.postgresql.org; Thu, 18 Jun 2015 15:32:32 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Z5bns-00010p-4C for pgsql-bugs@postgresql.org; Thu, 18 Jun 2015 15:32:32 +0000 Received: from smtp-auth.no-ip.com ([8.23.224.61] helo=out.smtp-auth.no-ip.com) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Z5bno-0005BB-LY for pgsql-bugs@postgresql.org; Thu, 18 Jun 2015 15:32:30 +0000 X-No-IP: alvh.no-ip.org@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from alvin.alvh.no-ip.org (unknown [216.13.52.59]) (Authenticated sender: alvh.no-ip.org@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 97BFC400E9F; Thu, 18 Jun 2015 08:32:22 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 66DD237B6; Thu, 18 Jun 2015 12:32:21 -0300 (CLT) Date: Thu, 18 Jun 2015 12:32:21 -0300 From: Alvaro Herrera To: Fabien COELHO Cc: digoal@126.com, PostgreSQL Bugs List Subject: Re: BUG #13453: PostgreSQL 9.5dev pgbench exponential distribution bug? (when threshold is small) Message-ID: <20150618153221.GG133018@postgresql.org> References: <20150618044100.2730.35003@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Fabien COELHO wrote: > > Hello, > > >\setrandom id 1 50000 exponential 0.0000001 > >insert into test values (:id); > > Yes, a very small coefficient on a truncated exponential is pretty close to > a uniform distribution. I think that this is a mathematical fact, not a bug. It's a fact of life also ... you don't notice exponentially-growing stuff until it's way out of hand :-) -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs