Re: [BUGS] BUG #5412: test case produced, possible race condition.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUGS] BUG #5412: test case produced, possible race condition.
Дата
Msg-id 16416.1271285747@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #5412: test case produced, possible race condition.  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: [BUGS] BUG #5412: test case produced, possible race condition.
Список 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 по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: shared_buffers documentation
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: [BUGS] BUG #5412: test case produced, possible race condition.