> > sleep(3) should conform to POSIX specification, if anyone has the > > reference they can check it to see what the effect of sleep(0) > > should be. > > Yes, but Posix also specifies sched_yield() which rather explicitly > allows a process to yield its timeslice. No idea how well that is > supported. I have it on BSDI. We could add a configure check, and use it if it is there. Another idea is to add a shared memory flag when someone enters the 'commit' section of the transaction code. That way, a backend could check to see if another process is _about_ to commit, and wait. -- Bruce Momjian | http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
- Re: [HACKERS] RE: [COMMITTERS] pgsql/src/backend/access/t... Bruce Momjian
- Re: [HACKERS] RE: [COMMITTERS] pgsql/src/backend/acc... Alfred Perlstein
- Re: [HACKERS] RE: [COMMITTERS] pgsql/src/backend... Don Baccus
- Re: [HACKERS] RE: [COMMITTERS] pgsql/src/ba... Bruce Momjian
- Re: [HACKERS] RE: [COMMITTERS] pgsql/sr... Don Baccus
- Re: [HACKERS] RE: [COMMITTERS] pgsql/src... Larry Rosenman
- Re: [HACKERS] RE: [COMMITTERS] pgsql/src... Bruce Momjian
- Re: [HACKERS] RE: [COMMITTERS] pgsql/src... Larry Rosenman
- Re: [HACKERS] RE: [COMMITTERS] pgsql/src... Alfred Perlstein
- Re: [HACKERS] RE: [COMMITTERS] pgsql/src... Tom Samplonius
- Re: [HACKERS] RE: [COMMITTERS] pgsql/src... Bruce Momjian
- Re: [HACKERS] RE: [COMMITTERS] pgsql/src... Larry Rosenman
- Re: [HACKERS] RE: [COMMITTERS] pgsql/src... Bruce Momjian
- Re: [HACKERS] RE: [COMMITTERS] pgsql/src... Larry Rosenman
- [HACKERS] WAL fsync scheduling Bruce Momjian
- Re: [HACKERS] WAL fsync scheduling Tom Lane
- Re: [HACKERS] WAL fsync scheduling Bruce Momjian
- Re: [HACKERS] WAL fsync scheduling Bruce Momjian
- Re: [HACKERS] WAL fsync scheduling Larry Rosenman
- Re: [HACKERS] WAL fsync scheduling Bruce Momjian
- Re: [HACKERS] WAL fsync scheduling Tom Lane