Re: sql listen fails using libpgtcl - Mailing list pgsql-interfaces

From Brett Schwarz
Subject Re: sql listen fails using libpgtcl
Date
Msg-id 20060131155205.74819.qmail@web34604.mail.mud.yahoo.com
Whole thread Raw
In response to sql listen fails using libpgtcl  (Judith Retief <JudithR@inet.co.za>)
List pgsql-interfaces

--- Judith Retief <JudithR@inet.co.za> 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 <tablename>
> <notification>" 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 


pgsql-interfaces by date:

Previous
From: Judith Retief
Date:
Subject: sql listen fails using libpgtcl
Next
From: Judith Retief
Date:
Subject: Re: sql listen fails using libpgtcl