Re: WAL fsync scheduling - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: WAL fsync scheduling
Date
Msg-id 200011181807.NAA27025@candle.pha.pa.us
Whole thread Raw
In response to Re: WAL fsync scheduling  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: WAL fsync scheduling
List pgsql-hackers
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> >> how about sigpause, and using SIGUSR1/SIGUSR2 to wake them up ? 
> 
> > Looks like a winner.
> 
> sigpause() is a BSD-ism, and not part of any recognized standard
> according to my HP man pages.  How portable do you think it is?

Good point.  I get on BSDI:
    The sigpause function call appeared in 4.2BSD and has been deprecated.

The standard is sigsuspend:
    The sigsuspend function call conforms to IEEE Std1003.1-1988 (``POSIX'').

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: WAL fsync scheduling
Next
From: Tom Lane
Date:
Subject: Re: WAL fsync scheduling