Re: sql listen fails using libpgtcl

From: Brett Schwarz <brett_schwarz(at)yahoo(dot)com>
To: Judith Retief <JudithR(at)inet(dot)co(dot)za>, "'pgsql-interfaces(at)postgresql(dot)org'" <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: sql listen fails using libpgtcl
Date: 2006-01-31 15:52:05
Message-ID: 20060131155205.74819.qmail@web34604.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

--- Judith Retief <JudithR(at)inet(dot)co(dot)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

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Judith Retief 2006-02-01 05:37:36 Re: sql listen fails using libpgtcl
Previous Message Judith Retief 2006-01-31 09:42:36 sql listen fails using libpgtcl