Re: WAL fsync scheduling
Bruce Momjian <pgman@candle.pha.pa.us>
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Larry Rosenman <ler@lerctr.org>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2000-11-18T18:07:00Z
Lists: 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, Pennsylvania 19026