Re: [INTERFACES] libpgtcl modifications

Поиск
Список
Период
Сортировка
Искать

Re: [INTERFACES] libpgtcl modifications

От:
Gerhard Hintermayer <g.hintermayer@inode.at>
Дата:
Bruce Momjian wrote:
> Gerhard Hintermayer wrote:
> 
>>Bruce Momjian wrote:
>>
>>>Can I have some description of what this patch does?
>>>
>>
> 
> So this is a patch that will improve tcl for most users, and doesn't
> have a down-side?
> 

I didn't find one, I did some testing, but I'm still not on the 
production system up to now.
Well one down-side is, if you operate on the connection in the notify 
script, you could get seg faults (I think pg_disconnect does work, but 
e.g. pg_unlisten will core dump, not sure now, have to check that on 
monday, when I'm in the office), but that's predictable, if the 
connection is broken, you should'nt use it any more.

pgaccess could benefit from that too.

Anybody, who does a connect to a db in his script, and want's to get 
immediate feedback of a broken connection/fast server shutdown even if 
you have long idle times between db operations, could benefit from that. 
The easiest way would be to exit from the app with a short message.

Gerhard

PS: How's the plan for upgrade of libpgtcl to the new Tcl_Obj based API 
(introduced in 8.0 I think). I'd be willing to do some of the 
implementations. How about Tcl8.4 support (still beta, but will be 
released in a few month hopefully). Is support for versions before 8.0 
really necessary any more, this would result in both a string based 
*and* object based implementation ?

-- 
Gerhard Hintermayer
http://www.inode.at/g.hintermayer



--ELM1029601346-3976-0_--
FAQ