X-Original-To: pgsql-committers@postgresql.org Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by postgresql.org (Postfix) with ESMTP id AE365474E53 for ; Wed, 5 Mar 2003 23:33:46 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id h264XaQ11718; Wed, 5 Mar 2003 23:33:36 -0500 (EST) From: Bruce Momjian Message-Id: <200303060433.h264XaQ11718@candle.pha.pa.us> Subject: Re: pgsql-server/ /configure /configure.in rc/incl ... In-Reply-To: <12228.1046922471@sss.pgh.pa.us> To: Tom Lane Date: Wed, 5 Mar 2003 23:33:36 -0500 (EST) Cc: Christopher Kings-Lynne , pgsql-committers@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200303/20 X-Sequence-Number: 9263 I assume he just assumed poll() actually polls. I doesn't. It is just like select(). --------------------------------------------------------------------------- Tom Lane wrote: > "Christopher Kings-Lynne" 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 > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073