Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2004-04-20Remove all of the libpgtcl and pgtclsh files, including all references toPostgreSQL Daemon
them within the various makefiles with_tcl is still required for the src/pl/tcl language
2004-02-10Repair missing inclusions of -lintl for shared libraries.Tom Lane
2004-02-02Use Tcl_PutEnv() in place of putenv() in libpgtcl, as the latter canNeil Conway
apparently corrupt the Tcl runtime. Per suggestion from Michael Brusser <michael@synchronicity.com>
2004-01-07More janitorial work: remove the explicit casting of NULL literals to aNeil Conway
pointer type when it is not necessary to do so. For future reference, casting NULL to a pointer type is only necessary when (a) invoking a function AND either (b) the function has no prototype OR (c) the function is a varargs function.
2003-11-30Bump all version numbers and version stamps mentioned in RELEASE_CHANGES.Bruce Momjian
2003-11-29make sure the $Id tags are converted to $PostgreSQL as well ...PostgreSQL Daemon
2003-11-29$Header: -> $PostgreSQL Changes ...PostgreSQL Daemon
2003-11-08Restore compatibility with Tcl 8.0.* --- from ljb.Tom Lane
2003-10-31Use Tcl ByteArray objects to avoid unwanted character set translationTom Lane
in libpgtcl's lo_read/lo_write commands. Also, deal correctly with failure return from lo_read(). ljb and Tom Lane.
2003-10-28Include -lkrb5 when needed for shlibs depending on libpq. Per reportTom Lane
from Johan Henselmans.
2003-09-27Got the link order wrong :-(Tom Lane
2003-09-27Adjust Darwin build to use the default 'two level namespace' linkingTom Lane
method. Fix a number of places where shared libraries were linked without mentioning all the libraries they depend on; the Darwin and AIX ports are known to require this, and it doesn't seem to hurt any other supported platforms. (Hence, remove code in pl/tcl makefile that tried to avoid mentioning other libs if not needed.)
2003-08-04Update copyrights to 2003.Bruce Momjian
2003-08-04pgindent run.Bruce Momjian
2003-03-25Use PQfreemem() consistently, and document its use for Notify.Bruce Momjian
Keep PQfreeNotify() around for binary compatibility.
2003-02-01Prevent core dump from calling Tcl_DontCallWhenDeleted() with a nullTom Lane
interp pointer. Per report from Gerhard Hintermayer.
2003-02-01Apply ljb's patch to prevent both memory leak and core dump duringTom Lane
connection shutdown. This is a grotty workaround for a Tcl bug, but said bug has been there long enough that I'm not holding my breath for a real fix. Per discussions and testing from ljb and g.hintermayer.
2002-12-30Adjust Tcl-related code to compile cleanly with Tcl 8.4 (add const modifiers asTom Lane
needed). Some desultory const-ification of SPI interface to support this.
2002-12-30Make use of TCL_INCLUDE_SPEC if available (it's new in Tcl 8.4, too badTom Lane
it took 'em this long to realize it's needed...)
2002-12-11Bump version for 7.3 and 7.4.Bruce Momjian
2002-12-04Stamp minor version numbers for 7.4 release.Bruce Momjian
2002-11-26Add -cmdTuples to tcl interface.Bruce Momjian
2002-10-17Fix free-slot search in PgSetResultId so it actually works.Tom Lane
2002-10-17Improve formatting of error message.Tom Lane
2002-09-23Obviously noone has ever tested the doubling of availiable result idsBruce Momjian
up to reaching the hard limit. After opening 16(=current REST_START value) results via pg_exec, the next pg_exec tries to find an empty slot forever :-( . In PgSetResultId file pgtclId.c in the for loop there has to be done a break, if res_max ist reached. The piece of code should look like if (resid == connid->res_max) { resid = 0; break; /* the break as to be added */ } now everything works (double available results after reaching RES_START up to reaching RES_HARD_MAX) Gerhard Hintermayer
2002-09-04pgindent run.Bruce Momjian
2002-09-02Partial solution for 'unexpected EOF' problem with pg_disconnect: itTom Lane
seems we have a choice between annoying messages and leaking memory (or dumping core, but that's right out). Patch also fixes several other problems in pg_disconnect, such as being willing to close a channel that isn't a PG channel.
2002-09-02pg_on_connection_loss command for libpgtcl. Patch fromTom Lane
Gerhard Hintermayer, revised and documented by Tom Lane. This patch also fixes a 'must fix' bug: libpgtcl's LISTEN/NOTIFY support was broken by the recent changes to the PGnotify structure. Guess that change wasn't quite so safe as we thought.
2002-09-02I checked all the previous string handling errors and most of them wereBruce Momjian
already fixed by You. However there were a few left and attached patch should fix the rest of them. I used StringInfo only in 2 places and both of them are inside debug ifdefs. Only performance penalty will come from using strlen() like all the other code does. I also modified some of the already patched parts by changing snprintf(buf, 2 * BUFSIZE, ... style lines to snprintf(buf, sizeof(buf), ... where buf is an array. Jukka Holappa
2002-08-18Back out tcl patch, per Tom Lane:Bruce Momjian
Everytime if I do PQconsumeInput (when the backend channel gets readable) I check for the return value. (0 == error) and generate a notification manually, e.g. fixed string connection_closed) and pass it to the
2002-08-17What I have done for libpgtcl:Bruce Momjian
Everytime if I do PQconsumeInput (when the backend channel gets readable) I check for the return value. (0 == error) and generate a notification manually, e.g. fixed string connection_closed) and pass it to the TCL event queue. The only other thing I had to do is to comment out removing all pending events in PgStopNotifyEventSource whenever the connection was unexpectedly closed (so the manually generated event will not be deleted). A broken backend connection triggers a notify event to the client (fixed notification string "connection_closed") so proper action can be taken to switch to another database server etc. Remember that this is event driven. If you have applications, that have idle database connections most of the time, you'll get immediate feedback of a dying server. Upon connection to the server issue a pg_notify for notify event "connection_closed" and whenever the backend crashes (which it does do in very very rare cases) you get an event driven recovery. (of course the Tcl-Event loop has to be processed). Issuing a notification "connection_closed" on a still working database could be used for switching to another db-server (which I've actually impelemented right now). Gerhard Hintermayer
2002-07-27Assemble portability modules into libpgport library.Peter Eisentraut
Some makefile simplifications.
2002-06-20Update copyright to 2002.Bruce Momjian
2002-03-04Fix bogus error check in pg_execute, per report from lbayuk@mindspring.com.Tom Lane
2001-12-03Pg_lo_open must OR together multiple modes, not AND them. Per reportTom Lane
from Andreas Kretzer.
2001-11-05New pgindent run with fixes suggested by Tom. Patch manually reviewed,Bruce Momjian
initdb/regression tests pass.
2001-10-28Another pgindent run. Fixes enum indenting, and improves #endifBruce Momjian
spacing. Also adds space for one-line comments.
2001-10-25pgindent run on all C files. Java run to follow. initdb/regressionBruce Momjian
tests pass.
2001-09-17Use portable putenv(), not unportable setenv().Tom Lane
2001-09-10The attached patch should be sufficient to fix libpgtcl. It requiresBruce Momjian
PostgreSQL to support unicode-conversion, but retains binary compatibility among Tcl versions. However, it neither checks at compile time not at runtime, if support for unicode-conversion does really exist and it doesn't prevent the user from changing the client encoding after initialization. I think there should be warnings about this somewhere in the documentation. Reinhard Max
2001-09-07>has anyone ever successfully done copy to/from stdout with theBruce Momjian
>tcl-extension for postgreSQL. >I'm currently using 7.0 and always getting a seg fault when I try to >read from the database connection after issueing a "COPY table TO >stdout;" (I'm using the connection handle, *not* the result handle). >Maybe this is fixed in a later release. >The README file in src/interfaces/libpgtcl tells me, that this should >work, but unforunately it doesn't. Yes, it seems broken. It is a bug in libpgtcl. Are you running Tcl >= 8.3.2? That's when the Tcl team changed the data structure for channel callbacks. The change itself was designed to be backward compatible, but I suspect a related change made the code more sensitive to errors in the structure (NULL pointers where functions are required). Either that, or nobody has tried to use libpgtcl with COPY in a long time. First, I have to say I can't think of a good reason to use PostgreSQL's COPY command from a Tcl application. I think it should only be used with psql for importing data from another source into PostgreSQL, or for exporting PostgreSQL data into another database (but why would anyone do that?) If it was me, I would stick with SELECT and INSERT and be "SQL Compliant". OK, editorial is over. Try applying the patch below to fix src/interfaces/libpgtcl/pgtclId.c and let us know if it works. I did little testing on it, but my test did segfault before and ran fine (copy in and copy out) after the patch. This is for PostgreSQL-7.1.2 - since you are running older 7.0, I don't know if this will work, but I suspect it will. PS It's the absence of PgWatchProc which kills it. I didn't upgrade it to the "V2" channel type structure, so it should be compatible with older Tcl's. But aside from gets and puts, I doubt any other file operations would work on the handle during a copy. ljb
2001-09-06> The win32.mak and libpgtcl.def files had been lost (patch doesn't handleBruce Momjian
> new files). I'm attaching those two files below. > > Regards > Mikhail Terekhov
2001-09-06Below is the patch against current cvs for libpgtcl andBruce Momjian
two additional files win32.mak and libpgtcl.def. This patch allows to compile libpgtcl.dll on Windows with tcl > 8.0. I've tested it on WinNT (VC6.0), SUSE Linux (7.0) and Solaris 2.6 with tcl 8.3.3. Mikhail Terekhov
2001-08-10Since PQoidStatus is deprecated, we should probably stop using it inTom Lane
our own code ...
2001-05-11Stamp CVS as 7.2. Update all interface version numbers. This is theBruce Momjian
time to do it, not during beta because people are using this stuff in production sometimes.
2001-03-22pgindent run. Make it all clean.Bruce Momjian
2001-02-20Make sure -L and -I's for our source tree are always before system includePeter Eisentraut
or library directories on the command line.
2001-02-10Restructure the key include files per recent pghackers discussion: thereTom Lane
are now separate files "postgres.h" and "postgres_fe.h", which are meant to be the primary include files for backend .c files and frontend .c files respectively. By default, only include files meant for frontend use are installed into the installation include directory. There is a new make target 'make install-all-headers' that adds the whole content of the src/include tree to the installed fileset, for use by people who want to develop server-side code without keeping the complete source tree on hand. Cleaned up a whole lot of crufty and inconsistent header inclusions.
2001-01-24Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group.Bruce Momjian
2000-12-29column and tuple numbers should be int not size_t.Tom Lane