Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZAUEC-00081c-Eq for pgsql-bugs@arkaria.postgresql.org; Thu, 02 Jul 2015 02:27:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZAUEB-00012p-9P for pgsql-bugs@arkaria.postgresql.org; Thu, 02 Jul 2015 02:27:51 +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) (envelope-from ) id 1ZAUE9-00012g-7V for pgsql-bugs@postgresql.org; Thu, 02 Jul 2015 02:27:49 +0000 Received: from mail-wg0-f41.google.com ([74.125.82.41]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZAUE6-0001po-5r for pgsql-bugs@postgresql.org; Thu, 02 Jul 2015 02:27:47 +0000 Received: by wgqq4 with SMTP id q4so51049886wgq.1 for ; Wed, 01 Jul 2015 19:27:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=f2GX2jBj1di9S3BPd84x44pDsQCuE0ivUTEUbAh49+M=; b=DIbatVBSHz3BJcCRHXxR4qTWiSXqPOCdxK0aJaN1SdMq+rwMOH7PF014TnkI3YHA8I nT0bYbxJqBdmOKqL7mN8/U4XFMDMi906fylTvcTeg1bOUwIwuf4UnBg4h3SK/zRhDEw5 EczmAaeo0kk9k3H64D5hcddo7vZx/Ppp6vZBcWRHl6SsIk+/0pmGM/FU0323Kk4CrmXF 1zJefYdUA0nuSN2sD10/IYltVqVMGqm4amvx35ejkjVSs6YSoBAZD3luJGePifHeuQIs N7hAP0oAQI1xbgJfihU6ZC5iv3gwdGSmk5v+N89BC+dGTspj899GxsWD6qA39eaGR074 Wh7Q== X-Gm-Message-State: ALoCoQkIDLch5eX03p0OW7sM+zywbWtUb/0kut2yYCWkisT6rt6lte3f58b+0w2oSCfBOi/0qSlb1XyYvlpW4on8dEjqWwWB8SFCTUnRvx4lroVRAJvMo1zsnwy8pFQKzhg5lVhsnX3BvfXFs+P7x1YDaSXp4WwCd88QEtXj3up6Ec7tvqPaj4MCmog1co9HG+TdiBvdSSJZ X-Received: by 10.181.12.111 with SMTP id ep15mr11592548wid.15.1435804063800; Wed, 01 Jul 2015 19:27:43 -0700 (PDT) Received: from ?IPv6:2a00:1028:9941:52fa:e839:df84:99ef:ce5d? (dynamic-2a00-1028-9941-52fa-e839-df84-99ef-ce5d.ipv6.broadband.iol.cz. [2a00:1028:9941:52fa:e839:df84:99ef:ce5d]) by mx.google.com with ESMTPSA id k2sm6056705wif.4.2015.07.01.19.27.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jul 2015 19:27:42 -0700 (PDT) Message-ID: <5594A19B.9090503@2ndquadrant.com> Date: Thu, 02 Jul 2015 04:27:39 +0200 From: Petr Jelinek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Michael Paquier , Tom Lane CC: PostgreSQL mailing lists Subject: Re: Re: sampling.c and potential divisions by 0 ang log(0) with tablesample and ANALYZE in 9.5 References: <558E09FB.6010909@2ndquadrant.com> <6321.1435681035@sss.pgh.pa.us> <6412.1435681288@sss.pgh.pa.us> <5592CE94.1000208@2ndquadrant.com> <31445.1435690322@sss.pgh.pa.us> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 2015-07-02 02:51, Michael Paquier wrote: > On Wed, Jul 1, 2015 at 3:52 AM, Tom Lane wrote: >> Rather than expanding the API of port.h still further >> [...] > > The current trend, as far as I am understanding it, is not to increase > the amount of code in src/port, but actually to reduce it and to rely > a maximum on what modern platforms offer. See for example the recent > discussion about rint and numeric rounding here: > http://www.postgresql.org/message-id/flat/20150320194337.2573.72944@wrigleys.postgresql.org#20150320194337.2573.72944@wrigleys.postgresql.org > We are keeping rint around because MSVC just added it recently in > MS2013 even if the POSIX spec has it for a long time, but I am sure > that we would drop it asap from the code tree if we could. > Which is completely moot point here because the sampling depends on pg_erand48 on every platform no matter what the platform provides. -- Petr Jelinek http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, 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