Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bzOn3-0006Ns-W3 for pgsql-committers@arkaria.postgresql.org; Wed, 26 Oct 2016 14:02:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bzOn3-0008AF-J6 for pgsql-committers@arkaria.postgresql.org; Wed, 26 Oct 2016 14:02:49 +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 1bzOn2-00089s-V6 for pgsql-committers@postgresql.org; Wed, 26 Oct 2016 14:02:49 +0000 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bzOmy-0007mB-O3 for pgsql-committers@postgresql.org; Wed, 26 Oct 2016 14:02:47 +0000 Received: by mail-lf0-x22e.google.com with SMTP id d20so6962660lfj.5 for ; Wed, 26 Oct 2016 07:02:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=hA3Iw6TFKyrm/YIHnjFp7Jz0QHZwy6Jh86KwGH3Q0l8=; b=U1Ei0vNIk8LldEzzSs+DFV+OSTTenA8bu8MEKlu0CEK31QT9p13iw3AskTeNRWSGWv KnXoceTDWgpUOQModXCn+lAiHIISF9kbAWUwKEnj4Rq6fbXhaBcHz2lUSbr+UTMEKmjf kZAwEz/DiBi5NdQxXjWNDyawXTXx+Tb1IKcbZboOj3n1YqHIGDH/cVJ+s8X46my7YMFc qnLsMezHdUT5vQf9mBZEQ4Kr9UO4NISg1s1XitZY5K69ufmiOC5YZkg2eAVIzfAKoaeD t0hrPsNiOnipoiReUkv9QQHAV2ANtT5KVspAFXcvmkwpOlLeUhCgvO7zwa8cFdROruZq Nacg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:to:references:cc:from:message-id :date:user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=hA3Iw6TFKyrm/YIHnjFp7Jz0QHZwy6Jh86KwGH3Q0l8=; b=gIaV6FRbqfKmIRfIlj4d3gDD2qXeDTjAQGLwvP9mh+0rakViTYSwkpVfiOiEpMHb5w NtILrUF/maF39wJRrrpa1otvXXFcMrSjgoulM/Z2Sl/BN76LN9aMxO4Gn3QgEnLkoaVg H2zpFhwuFepUqYndBSUsqOHC0Dc90j8rMgEw4OLVoFhBTHmqfdJKyA6ge3RGolYGI3wm DYrI5V99KJvVXR4Br+kuauHCkgk454oIOoy7fxmQzpW9WhLVniAZ8/rXLQOue5LLR9R1 gUMSyIro4J2mht9+WK4bOm+6AXRZmEyOit+gaMym6uMiXL9pkvuys0QikzqE7+rLYB8D gRkg== X-Gm-Message-State: ABUngvc2e4ZICEQlpN3ZwtFXW/l6VbwS4bK2Sddyt5dnOFFT9Yfti/4rgWsIxjNl5lwlgg== X-Received: by 10.25.37.20 with SMTP id l20mr1871824lfl.88.1477490562593; Wed, 26 Oct 2016 07:02:42 -0700 (PDT) Received: from [192.168.1.111] (dsl-hkibrasgw1-58c38f-82.dhcp.inet.fi. [88.195.143.82]) by smtp.gmail.com with ESMTPSA id 84sm423310ljf.33.2016.10.26.07.02.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Oct 2016 07:02:41 -0700 (PDT) Subject: Re: pgsql: Avoid using platform-dependent floats in test case. To: Tom Lane References: <17832.1477489323@sss.pgh.pa.us> Cc: pgsql-committers@postgresql.org From: Heikki Linnakangas Message-ID: Date: Wed, 26 Oct 2016 17:02:40 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: <17832.1477489323@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 10/26/2016 04:42 PM, Tom Lane wrote: > Heikki Linnakangas writes: >> Avoid using platform-dependent floats in test case. >> The number of decimals printed for floats varied in this test case, as >> noted by several buildfarm members. There's nothing special about floats >> and arrays in the code being tested, so replace the floats with numerics to >> make the output platform-independent. > > Numerics aren't entirely platform-independent in Python, either, > cf prairiedog. Is it okay to use text? Oh, thanks for prodding, I didn't notice it was still failing, I thought it just hadn't run since that fix. There is actually a similar test for text already. I don't really have any reason to believe that this would work differently with different datatypes, adding tests with different datatypes was perhaps overkill in the first place. I'm going to just remove the offending case. - Heikki -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers