Re: Interruptible sleeps (was Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers!) - Mailing list pgsql-hackers

From Markus Wanner
Subject Re: Interruptible sleeps (was Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers!)
Date
Msg-id 4C88980E.9000503@bluegap.ch
Whole thread Raw
In response to Re: Interruptible sleeps (was Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers!)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 09/08/2010 08:18 PM, Tom Lane wrote:
> Considering that we know that major platforms
> such as FreeBSD have changed their implementations *very* recently,
> it seems foolish to assume that an executable built on a machine with
> corrected pselect could not be run on one with an older implementation.

FWIW testing a recent development (i.e. 9.0-devel) version of FreeBSD 
still failed to properly support pselect().

> Also, we have plenty of experience with substituting poll() for
> select(), so I'm not too worried about copy-and-pasting such code.

It's certainly a simpler change than the self-pipe trick vs. pselect(), yes.

I'm happy to go with the self-pipe trick. A quick micro-benchmark didn't 
even show any significant difference compared to pselect(), so form that 
perspective, it's not a big deal.

And we'd then have a major project using the self-pipe trick. (I would 
still like to know what others exist).

Regards

Markus Wanner


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: returning multiple result sets from a stored procedure
Next
From: Markus Wanner
Date:
Subject: Re: Interruptible sleeps (was Re: CommitFest 2009-07: Yay, Kevin! Thanks, reviewers!)