Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 34CE947603D; Fri, 4 Oct 2002 22:54:22 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 92164476032; Fri, 4 Oct 2002 22:54:21 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g952s2hR000265; Fri, 4 Oct 2002 22:54:03 -0400 (EDT) To: =?ISO-8859-1?Q?Crist=F3v=E3o_Dalla_Costa?= Cc: pgsql-general@postgresql.org, pgsql-interfaces@postgresql.org Subject: Re: LISTEN/NOTIFY In-reply-to: <3D9DFEF3.6020509@bsi.com.br> References: <3D9DFEF3.6020509@bsi.com.br> Comments: In-reply-to =?ISO-8859-1?Q?Crist=F3v=E3o_Dalla_Costa?= message dated "Fri, 04 Oct 2002 17:49:55 -0300" Date: Fri, 04 Oct 2002 22:54:02 -0400 Message-ID: <264.1033786442@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/290 X-Sequence-Number: 31288 =?ISO-8859-1?Q?Crist=F3v=E3o_Dalla_Costa?= writes: > I'm developing an e-commerce site using Apache/mod_perl and, for > performance, I intend to cache rows such as user and product information > inside Perl. I think the LISTEN/NOTIFY interface would be perfect for > invalidating the cache when a product/user gets updated, yet I have not > found a way to access it from Perl -- DBI, or DBD::Pg even, offer no way > to "listen". I don't know what the DBI/DBD design philosophy is regarding database-specific extensions --- but it would seem reasonable to me for DBD::Pg to offer some way to get at LISTEN functionality. Can anyone suggest how to do this in the context of DBI? I suggest moving any followups to pgsql-interfaces, where this discussion would be more on-topic. regards, tom lane