pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedNew asynchronous tcl postgresql interface
2+ messages / 2 participants
[nested] [flat]
* New asynchronous tcl postgresql interface
@ 1999-07-23 02:19 Colin McCormack <colin@field.medicine.adelaide.edu.au>
1999-07-23 14:05 ` Re: [INTERFACES] New asynchronous tcl postgresql interface Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Colin McCormack @ 1999-07-23 02:19 UTC (permalink / raw)
To: pgsql-interfaces@hub.org
Hi,
I think this is possibly a better alternative to the shipped tcl interface.
libtclpq - tcl postgresql interface library v1.0
Colin McCormack
Fri Jul 23 12:00:13 EST 1999
---
What it is:
----------
A quick/experimental Swig-generated hack
with itcl wrapper classes to permit:
- asynchronous execution of postgresql commands,
- cancellation of commands in progress.
Documentation:
-------------
None, only the test.tcl file.
Wrapper class source is pretty copiously documented.
Installation:
------------
several options:
libtclpq.so provided may work for you
OR, to work from the Swig generated on my machine:
touch tclpq_wrap.c; make libtclpq.so;
OR, if you have Swig installed, edit the Makefile and set PQDIR
make clean all
It's not set up to reside in any system directory (qv. Bug #2)
Where:
-----
gzipped tar:
ftp://field.medicine.adelaide.edu.au/pub/libtclpq/libtclpq.tgz
Swig is at:
http://www.swig.org/
Bugs:
----
1) Doesn't support COPY operations.
2) Haven't made a tcl package interface for it.
Tested with/under:
-----------------
postgresql 6.4.2
itcl 3.0 / tcl 8.0
glibc2.1 under Linux 2.2.9 (debian)
Swig 1.1p5-2 (debian)
Homepage:
--------
There isn't one, yet. If I put one up, it'll be
http://field.medicine.adelaide.edu.au/~colin/libtclpq/
Manifest:
--------
README This file
Makefile
tclpq.h Swig source file
tclpq_wrap.c Swig output file
libtclpq.so Interface library derived from above
tclpq_wrap.doc Swig generated documentation
pgConnection.tcl Wrapper for postgresql connection
pgResult.tcl Wrapper for pg_result type
test.tcl Sample file generating
Author:
------
Colin McCormack <colin@field.medicine.adelaide.edu.au>
Feel free to email me with any problems/bugs.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [INTERFACES] New asynchronous tcl postgresql interface
1999-07-23 02:19 New asynchronous tcl postgresql interface Colin McCormack <colin@field.medicine.adelaide.edu.au>
@ 1999-07-23 14:05 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 1999-07-23 14:05 UTC (permalink / raw)
To: colin@field.medicine.adelaide.edu.au; +Cc: pgsql-interfaces@hub.org
Colin McCormack <colin@field.medicine.adelaide.edu.au> writes:
> I think this is possibly a better alternative to the shipped tcl interface.
> A quick/experimental Swig-generated hack
> with itcl wrapper classes to permit:
> - asynchronous execution of postgresql commands,
> - cancellation of commands in progress.
Cool. The existing libpgtcl is certainly lacking in those areas
(although it does have pretty good asynchronous-NOTIFY support,
which I hope you borrowed).
Are you planning to bring this code & doc up to the level at which
it could become part of the standard distribution?
Since your code requires itcl and the existing library doesn't,
I foresee that not everyone will want to switch. It might be good
to choose a name that will make it clear that this code needs itcl
(I'm thinking libpgitcl, perhaps) so that people will easily see
which is which.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1999-07-23 14:05 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-07-23 02:19 New asynchronous tcl postgresql interface Colin McCormack <colin@field.medicine.adelaide.edu.au>
1999-07-23 14:05 ` Tom Lane <tgl@sss.pgh.pa.us>
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