Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id C96DB9FB1C6 for ; Wed, 7 Mar 2007 08:32:42 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 05690-04 for ; Wed, 7 Mar 2007 08:32:35 -0400 (AST) X-Greylist: delayed 01:09:03.088225 by SQLgrey-1.7.4 Received: from pne-smtpout2-sn2.hy.skanova.net (pne-smtpout2-sn2.hy.skanova.net [81.228.8.164]) by postgresql.org (Postfix) with ESMTP id 73F409FB1C3 for ; Wed, 7 Mar 2007 08:32:39 -0400 (AST) Received: from w128mtec (213.66.190.224) by pne-smtpout2-sn2.hy.skanova.net (7.2.075) id 45B620AA00B1E0CB for pgsql-jdbc@postgresql.org; Wed, 7 Mar 2007 12:23:35 +0100 Message-ID: <222501c760ab$0f018360$e0be42d5@w128mtec> From: "mikael-aronsson" To: Subject: LISTEN question Date: Wed, 7 Mar 2007 12:23:40 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1 tagged_above=0 required=5 tests=BAYES_60 X-Spam-Level: * X-Archive-Number: 200703/68 X-Sequence-Number: 16782 Hi ! Does any one have any idea on the impact of using a large number of different LISTEN, say that I add 20 "LISTEN something;" statements will this slow down the client much ? The thing is that I have 20 different tables and I would like to be notified when something change in any of the tables, there are timestamps so I can use SELECT * FROM xxx WHERE timestamp>zzz to get the changed data but going to put out 20 SELECT queries all the time does not sound very smart so I thought I would use LISTEN/NOTIFY instead to improve performance.