aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpgtcl/pgtclCmds.c
Commit message (Collapse)AuthorAge
...
* From: Tom Lane <tgl@sss.pgh.pa.us>Marc G. Fournier1998-07-09
| | | | | | | | | | | | | | | | | | | | | | | | The attached patches respond to discussion that was on pgsql-hackers around the beginning of June (see thread "libpgtcl bug (and symptomatic treatment)"). The changes are: 1. Remove code in connectDB that throws away the password after making a connection. This doesn't really add much security IMHO --- a bad guy with access to your client's address space can likely extract the password anyway, to say nothing of what he might do directly. And there's the serious shortcoming that it prevents PQreset() from working if the database requires a password. 2. Fix coredump problem: fe_sendauth did not guard against being handed a NULL password pointer. (This is the proximate cause of the coredump- during-PQreset problem that Magosanyi Arpad complained of last month.) 3. Remove highly questionable "error recovery" logic in libpgtcl's pg_exec statement. I believe the consensus of the discussion last month was in favor of #1 and #3, but I'm just now getting around to making the change. I realized that #2 was a bug in process of looking at the change.
* large object fixBruce Momjian1998-06-16
|
* There is a patch which has worked for me. The real problem mightBruce Momjian1998-06-16
| | | | | | | be in PQreset, which can't reset a conninfo based connection. The patch: Arpad Magosanyi
* The attached patch modifies libpgtcl per previous discussion: theBruce Momjian1998-06-16
| | | | | | | | | | | | | | | | | | pg_notifies statement is eliminated, and callbacks defined by pg_listen are instead invoked automatically from the Tcl idle loop whenever a NOTIFY message is received. I have done only cursory testing, so there may be problems still lurking (particularly on non-Unix machines?). But it seems to work. Patch is against today's cvs sources. Note that this will not work with the 6.3.2 release since it depends on the new libpq. The diffs are a bit large so I've gzipped them. A patch to update libpgtcl.sgml is included too. regards, tom lane
* Remove un-needed braces around single statements.Bruce Momjian1998-06-15
|
* This problem had nothing to do with the upgrades I made. ThereBruce Momjian1998-03-30
| | | | | | | | | | | | was a 2000 character buffer allocated for results, and the files you refer to produce a 2765 byte column called formsource. This should not have worked with any version of libpgtcl. Nevertheless, the limit is an artificial one, since there is no need to use this intermediate buffer where it is being used and abused. Randy Kunkee <kunkee@pluto.ops.NeoSoft.com>
* From: Randy Kunkee <kunkee@pluto.ops.NeoSoft.com>Marc G. Fournier1998-03-15
| | | | | | | | | | | | | It is my hope that the following "patches" to libpgtcl get included in the next release. See the update to the README file to get a full description of the changes. This version of libpgtcl is completely interpreter-safe, implements the database connection handle as a channel (no events yet, but will make it a lot easier to do fileevents on it in the future), and supports the SQL "copy table to stdout" and "copy table from stdin" commands, with the I/O being from and to the connection handle. The connection and result handles are formatted in a way to make access to the tables more efficient.
* pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian1998-02-26
|
* Goodbye register keyword. Compiler knows better.Bruce Momjian1998-02-11
|
* More archive cleanup.Bruce Momjian1997-11-21
|
* Patch for tcl library crash, from Jan Wieck.Bruce Momjian1997-10-30
|
* Fix for array handling, from Gerhard HintermayerBruce Momjian1997-10-30
|
* Fix for libpgtcl from Constantin Teodorescu.Bruce Momjian1997-09-25
|
* Another PGINDENT run that changes variable indenting and case label ↵Bruce Momjian1997-09-08
| | | | indenting. Also static variable indenting.
* Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian1997-09-07
|
* From: Anton de Wet <adw@obsidian.co.za>Marc G. Fournier1997-04-02
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Subject: [HACKERS] Small patch to pgtclCmds.c Hi I have made the following small change to the extensions I made to pgtclCmds.c quite a while ago. At the moment there is a -assignbyidx option to pg_result assigning the returned tuples to an array by using the 1st field of the select statement as the key to the array. eg "select name,age from vitalstatistics" will result in an array with myarray(peter) = 32 myarray(paul) = 45 Often I need to have a pseudo-multi dimentional array eg. "select name,age from vitalstatistics where occupation='plummer' I would like to be able to generate an array newarray(peter,overpaid) = 32 So to add a arbitrary string to the key value I have extended pg_result $res -assignbyidx $arrayname to have an optional argument pg_result $res -assignbyidx $arrayname $appendstr So that that string is appended to the key value.
* The last patch fixes some incongruences in the #define used to compile theMarc G. Fournier1997-01-23
| | | | | | | Tcl arrays support. Here are the correct values to be defined in config.h and pgtclCmds.c. Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
* Fixes:Marc G. Fournier1997-01-11
| | | | | | I forgot to clear out the variable created and the memory used. From: darcy@druid.net (D'Arcy J.M. Cain)
* From: darcy@druid.net (D'Arcy J.M. Cain)Marc G. Fournier1997-01-11
| | | | | | Fix for libpgtcl: I forgot to clear out the variable created and the memory used.
* someone added pg_listen and pg_notifies to libpgtcl. But firstMarc G. Fournier1997-01-03
| | | | | | | | | | | these routines try to use the old pointer casting stuff to get the connection id, second the notification hash table should be part of the cliendData. Otherwise, one interpreter might eat up the notifies for another one. Please apply the patch below to the current 6.0 tree. Submitted by: wieck@sapserv.debis.de
* Add two new comments to pglibtcl...Marc G. Fournier1996-12-19
| | | | From: Massimo Dal Zotto <dz@cs.unitn.it>
* Various cleanups from D'ArcyMarc G. Fournier1996-11-11
|
* Added in PQconnectdb() functionMarc G. Fournier1996-11-09
| | | | Submitted by: wieck@sapserv.debis.de (Jan Wieck)
* Changes to libpgtcl submitted by: wieck@sapserv.debis.de (Jan Wieck)Marc G. Fournier1996-10-30
| | | | | | | | | | | | | | | Adds: -lAttributes Returns another format of the results attribute list. Per attribute a sublist of {{attname} atttype attlen} is returned and an empty string if no attributes where received. -numAttrs Returns the number of attributes in the result.
* Well I haven't received any feedback pro or con re my suggested new TclMarc G. Fournier1996-10-07
| | | | | | | | | | | | | function so I am going to assume that it is such a good idea that no one sees any point in discussing it. :-) I have made two changes - I have merged this into pgtclCmds.c and I have taken out any code for updating tuples after the loop body runs. See comments for discussion of this. I have also fixed up the error checking stuff so that break, continue and syntax errors have the expected result. Submitted by: D'Arcy Cain
* I have made some corrections to my previous patches for retrieving arrayMarc G. Fournier1996-09-16
| | | | | | | attributes as tcl arrays. The previous code had problems with some chars used as delimiter by Tcl. The new code should be more robust. By: Massimo Dal Zotto <dz@cs.unitn.it>
* Last changes to src from Dr. George *wipes brow*Marc G. Fournier1996-07-23
|
* Postgres95 1.01 Distribution - Virgin SourcesPG95-1_01Marc G. Fournier1996-07-09