From: Brett Schwarz <brett_schwarz@yahoo.com>
To: Judith Retief <JudithR@inet.co.za>
To: 'pgsql-interfaces@postgresql.org' <pgsql-interfaces@postgresql.org>
Subject: Re: sql listen fails using libpgtcl
Date: Tue, 31 Jan 2006 07:52:05 -0800 (PST)
Message-ID: <20060131155205.74819.qmail@web34604.mail.mud.yahoo.com> (raw)
In-Reply-To: <DCB87AFF9E026D4FB9BB769D86DB2E5703ED6BD9@mail.inet.co.za>
--- 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: brett_schwarz@yahoo.com, JudithR@inet.co.za
Subject: Re: sql listen fails using libpgtcl
In-Reply-To: <20060131155205.74819.qmail@web34604.mail.mud.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox