pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Petr Jelinek <petr@2ndquadrant.com>
To: Michael Paquier <michael.paquier@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: Re: sampling.c and potential divisions by 0 ang log(0) with tablesample and ANALYZE in 9.5
Date: Thu, 02 Jul 2015 04:27:39 +0200
Message-ID: <5594A19B.9090503@2ndquadrant.com> (raw)
In-Reply-To: <CAB7nPqQH1poK9=ds__WCC8J4Z_V-_6=6eMgNZZbkDB88yK+X1Q@mail.gmail.com>
References: <CAB7nPqTL0YYPgGt00gV8mw+23U4ki8yXUKV0mfji3YVpAqR8sA@mail.gmail.com>
	<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>
	<CAB7nPqQH1poK9=ds__WCC8J4Z_V-_6=6eMgNZZbkDB88yK+X1Q@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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#20150320...
> 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



view thread (12+ messages)

Message-ID: <5594A19B.9090503@2ndquadrant.com>
Permalink:  ../5594A19B.9090503@2ndquadrant.com/
Also on:    postgresql.org/message-id/5594A19B.9090503@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: petr@2ndquadrant.com, michael.paquier@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: sampling.c and potential divisions by 0 ang log(0) with tablesample and ANALYZE in 9.5
  In-Reply-To: <5594A19B.9090503@2ndquadrant.com>
  References: <CAB7nPqTL0YYPgGt00gV8mw+23U4ki8yXUKV0mfji3YVpAqR8sA@mail.gmail.com> <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> <CAB7nPqQH1poK9=ds__WCC8J4Z_V-_6=6eMgNZZbkDB88yK+X1Q@mail.gmail.com> <5594A19B.9090503@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox