diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-09-21 01:02:04 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-09-21 01:02:04 +0000 |
commit | 4b048fbfaa16c8c35ee2a8411c9f0305d1c399b8 (patch) | |
tree | bee21dc89db8fcca0fbbf0340a6d22792776db35 /src/interfaces/libpgtcl/pgtcl.c | |
parent | b0297d806bc8e0357d34b12c8c7f732a27b8e749 (diff) | |
download | postgresql-4b048fbfaa16c8c35ee2a8411c9f0305d1c399b8.tar.gz postgresql-4b048fbfaa16c8c35ee2a8411c9f0305d1c399b8.zip |
This patch covers several to-do items that I had for libpgtcl:
* It works under both Tcl 7.6 and Tcl 8.0 now. (The code claims to
work under Tcl 7.5 as well, but I have no way to test that ---
if anyone still cares, please check it with 7.5.)
* pg_listen suppresses extra LISTEN commands and correctly sends an
UNLISTEN when the last listen request for a relation is cancelled.
(Note this means it will not work with pre-6.4 backends, but that
was true already because it depends on the current libpq, which
only speaks protocol 2.0.)
* Added -error option to pg_result so that there's some way to find
out what you did wrong ;-)
* Miscellaneous cleanups of code comments and overenthusiastic #includes.
BTW, I bumped the package version number from 1.2 to 1.3. Is this
premature? Does someone run around and do that routinely before
each pgsql release?
regards, tom lane
Diffstat (limited to 'src/interfaces/libpgtcl/pgtcl.c')
-rw-r--r-- | src/interfaces/libpgtcl/pgtcl.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/interfaces/libpgtcl/pgtcl.c b/src/interfaces/libpgtcl/pgtcl.c index e500f12ccda..df044b1196f 100644 --- a/src/interfaces/libpgtcl/pgtcl.c +++ b/src/interfaces/libpgtcl/pgtcl.c @@ -2,14 +2,14 @@ * * pgtcl.c-- * - * libpgtcl is a tcl package for front-ends to interface with pglite - * It's the tcl equivalent of the old libpq C interface. + * libpgtcl is a tcl package for front-ends to interface with PostgreSQL. + * It's a Tcl wrapper for libpq. * * Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtcl.c,v 1.12 1998/09/01 04:39:55 momjian Exp $ + * $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtcl.c,v 1.13 1998/09/21 01:02:00 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -17,14 +17,13 @@ #include <stdlib.h> #include "postgres.h" -#include "tcl.h" #include "libpgtcl.h" #include "pgtclCmds.h" #include "pgtclId.h" /* * Pgtcl_Init - * initialization package for the PGLITE Tcl package + * initialization package for the PGTCL Tcl package * */ @@ -35,7 +34,7 @@ Pgtcl_Init(Tcl_Interp * interp) /* * finish off the ChannelType struct. Much easier to do it here then * to guess where it might be by position in the struct. This is - * needed for Tcl7.6 and beyond, which have the getfileproc. + * needed for Tcl7.6 *only*, which has the getfileproc. */ #if HAVE_TCL_GETFILEPROC Pg_ConnType.getFileProc = PgGetFileProc; @@ -127,7 +126,7 @@ Pgtcl_Init(Tcl_Interp * interp) Pg_listen, (ClientData) NULL, (Tcl_CmdDeleteProc *) NULL); - Tcl_PkgProvide(interp, "Pgtcl", "1.2"); + Tcl_PkgProvide(interp, "Pgtcl", "1.3"); return TCL_OK; } |