Skip site navigation (1) Skip section navigation (2)

Re: pgsql-server/ /configure /configure.in rc/incl ...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql-server/ /configure /configure.in rc/incl ...
Date: 2003-03-06 03:47:51
Message-ID: 12228.1046922471@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-performance
"Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> writes:
>>> Has anyone ever thought about adding kqueue (for *BSD) support to
>>> Postgres, instead of using select?
>> 
>> Why?  poll() is standard.  kqueue isn't, AFAIK.

> It's supposed be a whole heap faster - there is no polling involved...

Supposed by whom?  Faster than what?  And how would it not poll?

The way libpq uses this call, it's either probing for current status
(timeout=0) or it's willing to block, possibly indefinitely, until the
desired condition arises.  It does not sit there in a busy-wait loop.
I can't see any reason to think that an OS-specific API would give
any marked difference in performance.

			regards, tom lane

In response to

Responses

pgsql-performance by date

Next:From: Tom LaneDate: 2003-03-06 04:19:16
Subject: Re: pgsql-server/ /configure /configure.in rc/incl ...
Previous:From: Christopher Kings-LynneDate: 2003-03-06 03:42:42
Subject: Re: pgsql-server/ /configure /configure.in rc/incl ...

pgsql-committers by date

Next:From: Tom LaneDate: 2003-03-06 04:19:16
Subject: Re: pgsql-server/ /configure /configure.in rc/incl ...
Previous:From: Christopher Kings-LynneDate: 2003-03-06 03:42:42
Subject: Re: pgsql-server/ /configure /configure.in rc/incl ...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group