Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUtIe-0007cM-5N for pgsql-committers@arkaria.postgresql.org; Fri, 29 Dec 2017 11:58:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eUtId-0002bK-CI for pgsql-committers@arkaria.postgresql.org; Fri, 29 Dec 2017 11:58:07 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eUtId-0002bA-40 for pgsql-committers@lists.postgresql.org; Fri, 29 Dec 2017 11:58:07 +0000 Received: from smtp-3.ensmp.fr ([194.214.158.139] helo=cascavel.ensmp.fr) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eUtIX-0001Yt-Ch; Fri, 29 Dec 2017 11:58:05 +0000 Received: from cri.ensmp.fr (AGrenoble-653-1-611-202.w92-129.abo.wanadoo.fr [92.129.39.202]) (authenticated bits=0) by cascavel.ensmp.fr (8.15.2/8.15.2/JMMC-22/Oct/2013) with ESMTPSA id vBTBvddC026739 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 29 Dec 2017 12:57:48 +0100 Date: Fri, 29 Dec 2017 12:57:39 +0100 (CET) From: Fabien COELHO X-X-Sender: fabien@lancre To: Thomas Munro cc: Robert Haas , pgsql-committers , rmrodriguez@carto.com Subject: Re: pgsql: Add pow(), aka power(), function to pgbench. In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Miltered: at cascavel.ensmp.fr with ID 5A462DB3.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Auth: USER-ID coelho X-j-chkmail-Enveloppe: 5A462DB3.000 from AGrenoble-653-1-611-202.w92-129.abo.wanadoo.fr/AGrenoble-653-1-611-202.w92-129.abo.wanadoo.fr/92.129.39.202/cri.ensmp.fr/ List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > # debug(script=0,command=31): double 8.50705917302346e+037 > # doesn't match '(?^:command=31.: double 8.50705917302346e\+37\b)' > > # debug(script=0,command=32): double 1e+030 > # doesn't match '(?^:command=32.: double 1e\+30\b)' > > The difference seems to be a leading zero before the exponent, so > perhaps the patterns need "0*" in there? Probably "0?". Although an int with leading zeros is usually an octal number, so window's rational fails me. -- Fabien.