Re: initial random incompatibility

From: Darafei "Komяpa" Praliaskouski <me(at)komzpa(dot)net>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Euler Taveira <euler(at)timbira(dot)com(dot)br>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Bruce Momjian <bruce(at)momjian(dot)us>
Subject: Re: initial random incompatibility
Date: 2019-06-17 16:55:44
Message-ID: CAC8Q8tKeB77nP34Om_bJKFihVKS-FUn-h1CS79zW8UCk_ROpzw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I cannot find traces, but I believe there was a Twitter poll on which
random do people get after setseed() in postgres, and we found at least
three distinct sequences across different builds.

On Mon, Jun 10, 2019 at 5:52 PM Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
wrote:

> On 2019-Jun-08, Euler Taveira wrote:
>
> > While fixing the breakage caused by the default number of trailing
> > digits output for real and double precision, I noticed that first
> > random() call after setseed(0) doesn't return the same value as 10 and
> > earlier (I tested 9.4 and later). It changed an expected behavior and
> > it should be listed in incompatibilities section of the release notes.
> > Some applications can rely on such behavior.
>
> Hmm. Tom argued about the backwards-compatibility argument in
> the discussion that led to that commit:
> https://www.postgresql.org/message-id/3859.1545849900@sss.pgh.pa.us
> I think this is worth listing in the release notes. Can you propose
> some wording?
>
> --
> Álvaro Herrera https://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
>
>
>

--
Darafei Praliaskouski
Support me: http://patreon.com/komzpa

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2019-06-17 17:09:24 Re: initial random incompatibility
Previous Message Andres Freund 2019-06-17 16:39:21 Re: how to run encoding-dependent tests by default