Re: Race conditions, race conditions! - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Race conditions, race conditions!
Date
Msg-id 87d5s2u8zc.fsf@stark.xeocode.com
Whole thread Raw
In response to Race conditions, race conditions!  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Race conditions, race conditions!
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> The trick is to run this under astronomical load; 100 or so client
> threads on a garden-variety PC is about right.

I wonder if there's an argument for building assertion-enabled builds with
code that randomly yields the processor some percentage of time before and
after taking a lock. It wouldn't catch every case but it might help.

-- 
greg



pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: pgFoundry
Next
From: "Joshua D. Drake"
Date:
Subject: Re: pgFoundry