Re: RE: [COMMITTERS] pgsql/src/backend/access/transam ( xact.c xlog.c)

From: Larry Rosenman <ler(at)lerctr(dot)org>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Samplonius <tom(at)sdf(dot)com>, Alfred Perlstein <bright(at)wintelcom(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: RE: [COMMITTERS] pgsql/src/backend/access/transam ( xact.c xlog.c)
Date: 2000-11-17 17:42:01
Message-ID: 20001117114201.A12289@lerami.lerctr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

* Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> [001117 11:39]:
> > * Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> [001117 11:23]:
> > > > > 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.
> > On UnixWare, it requires the -Kthread or -Kpthread command, which then
> > links in the threads library...
> >
> > I'm not sure that this is a good thing or not....
>
> I would hope it just calls the function, and does not bring in thread
> startup stuff.
I suspect it DOES bring in the thread startup and all that implies...

Tread lightly. The good news is UnixWare Threads are LWP's and the
kernel is multithreaded...

LER

>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
> + If your life is a hard drive, | 830 Blythe Avenue
> + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 972-414-9812 (voice) Internet: ler(at)lerctr(dot)org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2000-11-17 18:18:04 Re: Coping with 'C' vs 'newC' function language names
Previous Message Bruce Momjian 2000-11-17 17:35:44 Re: RE: [COMMITTERS] pgsql/src/backend/access/transam ( xact.c xlog.c)