Received: from sophia.nova.it (root@sophia.nova.it [195.120.216.60]) by hub.org (8.8.8/8.7.5) with ESMTP id KAA04084 for ; Tue, 13 Jan 1998 10:35:35 -0500 (EST) Received: from 192.168.1.100 (rub162.tv00.ne.interbusiness.it [194.184.224.162]) by sophia.nova.it (8.8.8/8.8.8) with ESMTP id QAA04012 for ; Tue, 13 Jan 1998 16:42:15 +0100 Message-ID: <34BB8906.D736C751@nova.it> Date: Tue, 13 Jan 1998 16:32:36 +0100 From: Paolo Cacciatori Reply-To: paolo@nova.it Organization: Gajo & Associati s.r.l. X-Mailer: Mozilla 4.01 (Macintosh; I; PPC) MIME-Version: 1.0 To: PostgreSQL Interfaces Subject: Re: [INTERFACES] Re: [QUESTIONS] Connect to Postgres with pure TCL X-Priority: 3 (Normal) References: <34BB6199.2155538B@flex.ro> Content-Type: text/plain; charset=us-ascii; x-mac-type="54455854"; x-mac-creator="4D4F5353" Content-Transfer-Encoding: 7bit Constantin Teodorescu wrote: > Herouth Maoz wrote: > > > > However, your way would be much more logical, though I suspect a > > performance degredation if all the connections are done in the > interpreted > > language itself. > > I don't think so. > SQL conversation mean some small messages for establishing protocol > then > sending the SQL command and after that receiving data. The most part > of > the time is taken by data transferring over the network. I would bet > on > a maximum 5% performance degrading. > > Tcl/Tk 8.0 would be the only version that could deal with binary i/o > over files and sockets. > > In my opinion, it wouldn't be so hard to rewrite pg interface directly > > in Tcl. > I would study that posibility and keep you informed. > Thanks. In the meantime I've done some test with Tcl/Tk 8.0 and I was able to make a connection and send a simple query over it. The hard part is extracting the data from the result. If you are interested I can send the rude code of my test, but I'm working with Tcl only from a week .... Paolo Cacciatori paolo@plavis.com