X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 51A3C5352B for ; Wed, 20 Apr 2005 12:55:58 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 54746-08 for ; Wed, 20 Apr 2005 15:55:55 +0000 (GMT) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by svr1.postgresql.org (Postfix) with ESMTP id 2DF225350F for ; Wed, 20 Apr 2005 12:55:54 -0300 (ADT) Received: from [192.168.1.100] ([24.202.23.128]) by VL-MO-MR007.ip.videotron.ca (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0IF9005ZF5L0GY@VL-MO-MR007.ip.videotron.ca> for pgsql-jdbc@postgresql.org; Wed, 20 Apr 2005 11:55:48 -0400 (EDT) Date: Wed, 20 Apr 2005 11:59:46 -0400 From: David Gagnon Subject: Re: implementing asynchronous notifications In-reply-to: <4265A05C.6050302@opencloud.com> To: pgsql-jdbc@postgresql.org Message-id: <42667C72.9070708@siunik.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) References: <4265A05C.6050302@opencloud.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.013 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/99 X-Sequence-Number: 12706 Hi, I just read this thread. Wich seems really interesting. Is there an example on how to use Async Notifies? I look at it a couple of months ago and found it not sufficient for my needs. I need to implement a notification mechanism to clear data from caches in my application on data update. Is this change allow me to do that .. ? That will be so nice :-) If yes it's that possible to get a small example on how to use it. Thanks! /David Oliver Jowett wrote: >Andras Kadinger wrote: > > > >>PGConnection.getNotifies() now processes peding Async Notifies first - no >>need to send polling queries to the server anymore. The result is zero >>network traffic in the idle case. >> >> > >I've applied your latest patch (with some cosmetic editing and a >testcase) to CVS HEAD. Thanks for implementing this! > >-O > >---------------------------(end of broadcast)--------------------------- >TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) > > >