Re: sql listen fails using libpgtcl

Поиск
Список
Период
Сортировка
От Brett Schwarz
Тема Re: sql listen fails using libpgtcl
Дата
Msg-id 20060131155205.74819.qmail@web34604.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на sql listen fails using libpgtcl  (Judith Retief <JudithR@inet.co.za>)
Список 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 по дате отправления:

Предыдущее
От: Judith Retief
Дата:
Сообщение: sql listen fails using libpgtcl
Следующее
От: Judith Retief
Дата:
Сообщение: Re: sql listen fails using libpgtcl