X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id E65359DCBDD for ; Tue, 31 Jan 2006 11:52:03 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 86532-03 for ; Tue, 31 Jan 2006 11:52:07 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web34604.mail.mud.yahoo.com (web34604.mail.mud.yahoo.com [209.191.68.138]) by postgresql.org (Postfix) with SMTP id 62EB29DCB61 for ; Tue, 31 Jan 2006 11:52:00 -0400 (AST) Received: (qmail 74821 invoked by uid 60001); 31 Jan 2006 15:52:05 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=wUX5pef7yac4+XAP8Z5cR7MlbrLuGS7n2+ILjCrEJLtRtf2sM2nkLtErr7SwgVYg2V72m5PTTpILsVVuCjPqZnFr8veQLbl4kbMCmrnK0Cd0Jy0wfpP4YJ1MjpH0r3GpytQytwcvMVY02vr+2J7TcF79Z0iYrQWqsr7YlW1U/is= ; Message-ID: <20060131155205.74819.qmail@web34604.mail.mud.yahoo.com> Received: from [192.160.6.252] by web34604.mail.mud.yahoo.com via HTTP; Tue, 31 Jan 2006 07:52:05 PST Date: Tue, 31 Jan 2006 07:52:05 -0800 (PST) From: Brett Schwarz Subject: Re: sql listen fails using libpgtcl To: Judith Retief , "'pgsql-interfaces@postgresql.org'" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.479 required=5 tests=[DNS_FROM_RFC_ABUSE=0.479] X-Spam-Score: 0.479 X-Spam-Level: X-Archive-Number: 200601/48 X-Sequence-Number: 5964 --- Judith Retief wrote: > Hi there > > I don't know too much about either TCL or > Postgres, so this might be a > really silly thing. Anyways. We've got a TCL script > interfacing against a > (remote) PG server using libpgtcl. I've got to move > that script to another > machine, where I've installed libpgtcl doing > "apt-get install libpgtcl". > > Everything works (can connect to the remove db and > do a few select > statements), but where the script attempts a "sql > listen > " statement I get a run-time error: > "bad option 'listen': should be one of > sql cget -option > sql commit > [etc]" > > The Postgres server is 7.2.1 on debian linux. > I haven't seen that syntax before. Are you sure you don't want: pg_listen dbHandle notifyName callbackCommand http://www.postgresql.org/docs/7.3/interactive/pgtcl-pglisten.html are you using some other package, either standalone, or that wraps around libpgtcl? It almost sounds like you are using some wrapper package that didn't get moved to the other machine... --brett --brett __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com