Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id DEC606325AF for ; Sat, 19 Dec 2009 03:25:10 -0400 (AST) 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 11811-03 for ; Sat, 19 Dec 2009 07:25:03 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by mail.postgresql.org (Postfix) with ESMTP id 674B662F5D9 for ; Sat, 19 Dec 2009 03:25:03 -0400 (AST) Received: from localhost (access [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id A72A21E0446 for ; Sat, 19 Dec 2009 15:24:59 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (access.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id rE2qK7Edopse for ; Sat, 19 Dec 2009 15:24:57 +0800 (WST) Received: from [10.1.1.6] (124-169-133-89.dyn.iinet.net.au [124.169.133.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id D5A0B1E0443 for ; Sat, 19 Dec 2009 15:24:57 +0800 (WST) Message-ID: <4B2C7FC5.4070201@postnewspapers.com.au> Date: Sat, 19 Dec 2009 15:24:53 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: PG-General Mailing List Subject: Re: Cheapest way to poll for notifications? References: <4B2267A9.1080302@postnewspapers.com.au> In-Reply-To: <4B2267A9.1080302@postnewspapers.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/764 X-Sequence-Number: 156984 On 11/12/2009 11:39 PM, Craig Ringer wrote: > As for the JDBC driver - it turns out that the documentation is > out-of-date and/or misleading. The JDBC driver *does* support reading > notifications the backend has pushed to its receive buffer, and does > *not* have to poll the backend or issue a statement to receive > notifications. Update: The above is true only for non-SSL connections. For SSL connections you still have to send dummy statements. -- Craig Ringer