Re: pgbench internal contention

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgbench internal contention
Дата
Msg-id 12232.1312007541@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgbench internal contention  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: pgbench internal contention
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Jul 29, 2011 at 5:25 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Portability, or rather lack of it. �What about using erand48, which we
>> already have a dependency on (and substitute code for)?

> Neither our implementation nor glibc's appears to be thread-safe,

I think you're confusing srand48 with erand48.  The latter relies on a
caller-supplied state value, so if it's not thread-safe the caller has
only itself to blame.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Fix for pg_update on win32
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: cheaper snapshots