Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 422F4632A69 for ; Sun, 18 Jul 2010 19:15:22 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 12531-10 for ; Sun, 18 Jul 2010 22:15:14 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id 33E8A63289A for ; Sun, 18 Jul 2010 19:15:14 -0300 (ADT) Received: from 121-98-80-66.bitstream.orcon.net.nz ([121.98.80.66] helo=[192.168.1.2]) by tremor.opencloud.co.nz with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Oac8a-0007pc-Ej; Mon, 19 Jul 2010 10:15:08 +1200 Message-ID: <4C437CE6.2030508@opencloud.com> Date: Mon, 19 Jul 2010 10:15:02 +1200 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.24 (X11/20100411) MIME-Version: 1.0 To: max CC: pgsql-jdbc@postgresql.org Subject: Re: Questions about Listen/Notify mechanism References: <4C4267FA.2080604@directbox.com> In-Reply-To: <4C4267FA.2080604@directbox.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201007/48 X-Sequence-Number: 20713 max wrote: > "A key limitation of the JDBC driver is that it cannot receive > asynchronous notifications and must poll the backend to check if any > notifications were issued." The reason for this is that the driver does not have a separate I/O thread, so the driver code is only running (and reading from the database connection) when a query is run by the application. -O