Skip site navigation (1) Skip section navigation (2)

Re: pgbench internal contention

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pgbench internal contention
Date: 2011-07-30 06:32:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> On Fri, Jul 29, 2011 at 5:25 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to


pgsql-hackers by date

Next:From: Simon RiggsDate: 2011-07-30 08:17:23
Subject: Re: cheaper snapshots
Previous:From: Bruce MomjianDate: 2011-07-30 05:56:39
Subject: Fix for pg_update on win32

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group