Re: [BUGS] BUG #5412: test case produced, possible race condition. - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [BUGS] BUG #5412: test case produced, possible race condition.
Date
Msg-id 16416.1271285747@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUGS] BUG #5412: test case produced, possible race condition.  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: [BUGS] BUG #5412: test case produced, possible race condition.  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-hackers
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> The seed alone wouldn't be enough to duplicate the behavior, since
>> the behavior of random() typically varies across platforms.  So we
>> might get a report and still be unable to reproduce it.
> At least the person getting the initial failure would be able to
> recreate it, and possibly provide a stack trace.

On second thought, since there's no need for a particularly high-quality
RNG here, we could just embed some brain-dead one-liner implementation,
which should behave the same everywhere.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: shared_buffers documentation
Next
From: "Kevin Grittner"
Date:
Subject: Re: [BUGS] BUG #5412: test case produced, possible race condition.