Received: from maia.hub.org (maia-4.hub.org [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 7412D6848C1 for ; Wed, 19 May 2010 18:40:10 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 40944-02 for ; Wed, 19 May 2010 21:40:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by mail.postgresql.org (Postfix) with SMTP id 33B4D6848AB for ; Wed, 19 May 2010 18:40:01 -0300 (ADT) Received: (qmail 23660 invoked by uid 512); 19 May 2010 21:40:00 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 19 May 2010 21:40:00 -0000 Received: from unknown (HELO ?192.168.24.54?) (183.76.20.107) by sd.tpf.co.jp with SMTP; 19 May 2010 21:40:00 -0000 Message-ID: <4BF45AAC.9090403@tpf.co.jp> Date: Thu, 20 May 2010 06:39:56 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Tom Lane CC: Barry Nicholson , pgsql-odbc@postgresql.org Subject: Re: FD_SETSIZE with large #s of files/ports in use References: <4BF32A8E.3030900@tpf.co.jp> <4BF35CC2.2010801@tpf.co.jp> <23613.1274297964@sss.pgh.pa.us> In-Reply-To: <23613.1274297964@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.657 tagged_above=-10 required=5 tests=BAYES_20=-0.001, DNS_FROM_RFC_BOGUSMX=1.668, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: * X-Archive-Number: 201005/25 X-Sequence-Number: 10272 Tom Lane wrote: > Hiroshi Inoue writes: >> Another way is to use poll() instead of select(). > > You really need to go in that direction. Changing FD_SETSIZE is > completely unworkable --- it will break various libc ABI details. Thanks. I already made a patch to use poll() if the function is available. I would post it later. regards, Hiroshi Inoue