summaryrefslogtreecommitdiff
path: root/src/interfaces/libpgtcl
AgeCommit message (Collapse)Author
1997-04-02From: Anton de Wet <adw@obsidian.co.za>Marc G. Fournier
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.
1997-04-02From: Oleg Bartunov <oleg@sai.msu.su>Marc G. Fournier
Subject: [HACKERS] locale patches ! Hi there, here are little patches to get Postgres 6.1 works with locale stuff. This is a patch against 970402.tar.gz, there are no problem to apply them by hand to 6.0 release. Collate stuff tested about 1-2 months in real working database but I'm sure there must be no problem. US hackers could vote against locale implementation ( locale for sure will affect to speed of postgres ), so I introduce variable USE_LOCALE which controls locale stuff. Non-US users now could use ~* operator for searching and <order by> for strings with nation alphabet. Please, don't forget, as I did first time, to set environment variable LC_CTYPE and LC_COLLATE because backend get locale information from them. I start postmaster from a little script, assuming that shell is Bash shell it looks like: #!/bin/sh export LC_CTYPE=koi8-r export LC_COLLATE=koi8-r postmaster -B 1024 -S -D/usr/local/pgsql/data/ -o '-Fe'
1997-03-25Various patches for shared libraries under i386-solaris by:Marc G. Fournier
Christoph Kaesling <ck@dog.pfalz.sub.de>
1997-03-17Fixes for libpgtcl from MassimoMarc G. Fournier
1997-01-23The last patch fixes some incongruences in the #define used to compile theMarc G. Fournier
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>
1997-01-23Fix from Andrew for compiling libpgtcl...basically, switch off -Werror,Marc G. Fournier
which probably isn't needed, since we are going to take off -Werror anyway, right?
1997-01-11Fixes:Marc G. Fournier
I forgot to clear out the variable created and the memory used. From: darcy@druid.net (D'Arcy J.M. Cain)
1997-01-11From: darcy@druid.net (D'Arcy J.M. Cain)Marc G. Fournier
Fix for libpgtcl: I forgot to clear out the variable created and the memory used.
1997-01-10cleanup for LINUX_ELFBruce Momjian
1997-01-10I found the following bugs in the version 6.0 (dated 961229).Bruce Momjian
At least the first two should be fixed before the final release of 6.0. 1) There is a mismatch between the type declared in the catalog for the input/output attributes of pg_type and the actual type of values stored in the table. The type of typinput, typoutput, typsend and typreceive are declared oid (26) while the values are regproc (24). The error was there also in previous versions but nobody noticed it until an Assert has been added in ExecEvalVar. The effect is that it is now impossible to replace the typoutput of existing data types with new procs. 2) The identd hba fails after the first time because the data read from the identd socket is not zero-terminated and strlen reports an incorrect length if the stack contains garbage, which usually happens after the first connection has been made. 3) The new initdb wants to create itself the data directory. This implies that the parent directory must be writable by postgres and this may not always be desirable. A better solution would be to allow the directory to be created by root and then filled by initdb. It would also nice to have some reasonable default for PGLIB and PGDATA like the previous version did. This applies also to the postmaster executable.
1997-01-03 someone added pg_listen and pg_notifies to libpgtcl. But firstMarc G. Fournier
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
1996-12-19Add two new comments to pglibtcl...Marc G. Fournier
From: Massimo Dal Zotto <dz@cs.unitn.it>
1996-11-13Eliminate MKDIR, srcdir, objdir. Centralize setting of LIBPQDIR.Bryan Henderson
1996-11-12End of the make file simplifications.Bryan Henderson
1996-11-11Various cleanups from D'ArcyMarc G. Fournier
1996-11-09Added in PQconnectdb() functionMarc G. Fournier
Submitted by: wieck@sapserv.debis.de (Jan Wieck)
1996-11-08There is a problem in the Makefile of libpgtcl on linux (and maybe also onMarc G. Fournier
other platforms). If I do the standard make + make install the shared library is not linked with the the libpq library and when I try to load it in the standard Tcl or Tk shell I get a lot of unresolved symbols. The bug doesn't affect pgtclsh because it is linked also with libpq. The problem exists only when using the dynamic load feature of Tcl7.5. From: Massimo Dal Zotto <dz@cs.unitn.it>
1996-10-30Changes to libpgtcl submitted by: wieck@sapserv.debis.de (Jan Wieck)Marc G. Fournier
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.
1996-10-07Well I haven't received any feedback pro or con re my suggested new TclMarc G. Fournier
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
1996-09-16I have made some corrections to my previous patches for retrieving arrayMarc G. Fournier
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>
1996-07-23Last changes to src from Dr. George *wipes brow*Marc G. Fournier
1996-07-09Postgres95 1.01 Distribution - Virgin SourcesPG95-1_01Marc G. Fournier