2007-12-02

Accessing PostgreSQL from Tcl

From version 8.0 of PostgreSQL, the Tcl client library (pgtcl) has apparently been dropped from the core distribution. On Gentoo GNU/Linux, the Tcl client library does not seem to be built, even with the tcl USE flag. There are apparently three PostgreSQL-for-Tcl packages now available separately on PgFoundry:

AFAICT, pgtclng is the current one to get. I downloaded, built and installed this from pgtcl1.6.0.tar.gz and tested availability as follows:

$ tclsh
% package require Pgtcl
1.6.0

So far so good...