X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id DBA72D1C4EC for ; Wed, 7 Apr 2004 13:30:28 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 84676-05 for ; Wed, 7 Apr 2004 13:30:26 -0300 (ADT) Received: from web41007.mail.yahoo.com (web41007.mail.yahoo.com [66.218.93.6]) by svr1.postgresql.org (Postfix) with SMTP id 9F08CD1BB93 for ; Wed, 7 Apr 2004 13:30:24 -0300 (ADT) Message-ID: <20040407163019.34185.qmail@web41007.mail.yahoo.com> Received: from [63.142.169.9] by web41007.mail.yahoo.com via HTTP; Wed, 07 Apr 2004 09:30:19 PDT Date: Wed, 7 Apr 2004 09:30:19 -0700 (PDT) From: Theodore Petrosky Subject: notify and leaks? To: postgres SQL MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/57 X-Sequence-Number: 17432 I am using postgresql as the backend to a job tracking system. My front app is running only on Mac OS X. I have been using notifications from postgresql to tell my user if the current record they are looking at has been updated by someone else. Obviously I am only 'listening' when a user is looking at a particular job. I am concerned about usage of the listen and unlisten. How does the backend know if my app didn't quit unexpectidly? I mean I don't think my app has ever crashed :)... and I do make sure if the user quits that I close the connection. But I have a few users that are using laptops on a wireless network. We are in a building in manhattan and not infrequently the wireless connection is lost. After all this conversation.. I guess my question is.. am I leaking 'listens' if I don't close them properly? I only created a few users and most of the connections are from one of the user accounts. I do not have separate user accounts. Is this a problem waiting to bite me later? Ted __________________________________ Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway http://promotions.yahoo.com/design_giveaway/