summaryrefslogtreecommitdiff
path: root/src/interfaces
Commit message (Collapse)AuthorAgeFilesLines
* Pass atttypmod to the frontend.Bruce Momjian1998-05-141-6/+3
|
* Cleanups for large objects, so file is trucated on open, fix forBruce Momjian1998-05-123-5/+18
| | | | | solaris/spare shared libararies, new error message for postmaster startup, and makefile cleanups.
* Add sys/time.h to fe-misc.c, prevent pgtclsh from using old libaries,Bruce Momjian1998-05-121-1/+2
| | | | and allow CUSTOM_COPT to appear in compile AND LINK commands.
* Add missing includes.Bruce Momjian1998-05-072-2/+4
|
* Add missing file from Tom Lane.Bruce Momjian1998-05-071-0/+714
|
* It seems the regression tests don't cover copy in/out at all, soBruce Momjian1998-05-063-25/+66
| | | | | | | code that I had assumed was working had not been tested. Naturally, it was broken ... Tom Lane
* What I've done:Bruce Momjian1998-05-066-1793/+1851
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Rewritten libpq to allow asynchronous clients. 2. Implemented client side of cancel protocol in library, and patched psql.c to send a cancel request upon SIGINT. The backend doesn't notice it yet :-( 3. Implemented 'Z' protocol message addition and renaming of copy in/out start messages. These are implemented conditionally, ie, the client protocol version is checked; so the code should still work with 1.0 clients. 4. Revised protocol and libpq sgml documents (don't have an SGML compiler, though, so there may be some markup glitches here). What remains to be done: 1. Implement addition of atttypmod field to RowDescriptor messages. The client-side code is there but ifdef'd out. I have no idea what to change on the backend side. The field should be sent only if protocol >= 2.0, of course. 2. Implement backend response to cancel requests received as OOB messages. (This prolly need not be conditional on protocol version; just do it if you get SIGURG.) 3. Update libpq.3. (I'm hoping this can be generated mechanically from libpq.sgml... if not, will do it by hand.) Is there any other doco to fix? 4. Update non-libpq interfaces as necessary. I patched libpgtcl so that it would compile, but haven't tested it. Dunno what needs to be done with the other interfaces. Have at it! Tom Lane
* From: Michael Meskes <meskes@topsystem.de>Marc G. Fournier1998-05-0625-1644/+1792
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue Apr 28 14:48:41 CEST 1998 - Put operator "->" back into parser. Note that :foo->bar means the C term, but :foo ->bar means the operator "->". Tue Apr 28 15:49:07 CEST 1998 - Added exec sql disconnect command. - Allow varchar in C to be written in uppercase too. - Added whenever option "do break;" Wed Apr 29 09:17:53 CEST 1998 - Corrected parsing of C comments. - Also allow C++ style comments. - Make sure not found is only checked after commands that could return it. - Added error codes, see ecpgerror.h for details. - Added "exec sql <TransactionStmt> release" as disconnect statement for compatibility issues. Thu Apr 30 10:42:10 CEST 1998 - Added a -t option to disable automatic transaction start. - Added sqlerrd[] to sqlca struct. - Give back number of tuples affect in sqlca.sqlerrd[2]. Thu Apr 30 13:36:02 CEST 1998 - Make the return code different in case of different errors. Wed May 6 11:42:48 CEST 1998 - Free memory if possible - Some bugfixes for bugs I found while changing the memory allocation code - Now able to fill complete array with one call (see test1.pgc for an example) - Set version to 2.3.0 - Set library version to 2.1
* From: Oliver Elphick <olly@lfix.co.uk>Marc G. Fournier1998-04-291-3/+17
| | | | | | | | If PQfn() receives NOTICEs from the backend, it fails because there is no provision to deal with them. This patch (supplied by Anders Hammarquist <iko@netg.se> to me as Debian maintainer of postgresql) cures the problem:
* From: Tom Lane <tgl@sss.pgh.pa.us>Marc G. Fournier1998-04-272-4/+11
| | | | | | | | | | | | HP-UX (all versions) requires shared libraries to have execute permission, and really needs them to be exactly mode 555 for performance reasons. The standard configure/install procedure installs libpq.sl as mode 644, which DOES NOT WORK. The attached patch modifies the makefiles to distinguish INSTL_LIB_OPTS (install mode for ordinary libraries) from INSTL_SHLIB_OPTS (mode for shared libs), and adds a test to configure to set INSTL_SHLIB_OPTS="-m 555" when on HP-UX.
* From: Michael Meskes <meskes@topsystem.de>Marc G. Fournier1998-04-279-93/+173
| | | | | | And the next update. Now you can use only parts of a struct like this: exec sql select a into :struct.string from foo;
* Included is a patch for ecpg which seems to have some compilingBruce Momjian1998-04-261-0/+6
| | | | | problems on non POSIX systems such as SunOS 4.1.x. -- Tatsuo Ishii t-ishii@sra.co.jp -
* From: Michael Meskes <meskes@topsystem.de>Marc G. Fournier1998-04-2413-264/+347
| | | | | | | | | | | | | | | | | | + Thu Apr 23 09:27:16 CEST 1998 + + - Also allow call in whenever statement with the same functionality + as do. + + Thu Apr 23 12:29:28 CEST 1998 + + - Also rewrote variable declaration part. It is now possible to + declare more than one variable per line. + - Set version to 2.1.0 + + Fri Apr 24 13:50:15 CEST 1998 + + - Fixed some bugs. + - Set version to 2.1.1
* Upgrade ECPG to 2.0Marc G. Fournier1998-04-2120-639/+5000
| | | | Michael Meskes <meskes@topsystem.de>
* Try for a LINUX_ELF fix (bandage?)Marc G. Fournier1998-04-212-2/+4
|
* From: Bryan Henderson <bryanh@giraffe-data.com>Marc G. Fournier1998-04-211-1/+3
| | | | | | | Here's a fix for a tiny memory leak in PQsetdb/PQfinish. (Analysis of a running program indicates there are several others, but this is the only obvious one I saw in the code).
* From: Peter T Mount <patches@maidast.demon.co.uk>REL6_3_2Marc G. Fournier1998-04-185-6/+60
| | | | | | | | | This fixes a problem in ResultSet.getDate() when the column is NULL (reported by Vincent Partington <Vincent.Partington@nmg.nl>) And fixes a problem with Field's (ResultSet.getObject() was proving to be slow as it repetedly send queries for oid -> name mapping - fixed by creating a cache. (reported by Mario Ellebrecht <ellebrec@nads.de>)
* A few minor mods:Marc G. Fournier1998-04-171-1/+1
| | | | | | | gram.c updated scan.c updated ecpg/Makefile added LDFLAGS configure requires sfio for those systems with it installed...
* From: David Hartwig <daveh@insightdist.com>Marc G. Fournier1998-04-151-0/+455
| | | | | Marc, I overlooked this file it should be included in the source. Oops Also the binary file is only 1.2 meg not 2.5 meg. Oops again.
* 1.7.3Edmund Mergl1998-04-149-67/+82
|
* Replace old PostODBC driver with new one...Marc G. Fournier1998-04-1337-0/+12152
| | | | | This one is based on an older PostODBC driver, rewritten and maintained by InsightDist(?)
* DESTDIR removed, again.Bruce Momjian1998-04-067-72/+72
|
* destdir cleanup.Bruce Momjian1998-04-061-9/+9
|
* Cleanup of compiler warnings.Bruce Momjian1998-04-061-4/+3
|
* Make DESTDIR consistent, and verious Linux cleanups.Bruce Momjian1998-04-066-71/+61
|
* Re-introduce $DISTDIR.Bruce Momjian1998-04-066-28/+28
|
* Hi,Bruce Momjian1998-04-069-11/+24
| | | | | | | | | | | | | | | | | | | | | | Attached you'll find a (big) patch that fixes make dep and make depend in all Makefiles where I found it to be appropriate. It also removes the dependency in Makefile.global for NAMEDATALEN and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh a little smarter. This no longer requires initdb.sh that is turned into initdb with a sed script when installing Postgres, hence initdb.sh should be renamed to initdb (after the patch has been applied :-) ) This patch is against the 6.3 sources, as it took a while to complete. Please review and apply, Cheers, Jeroen van Vianen
* Remove DISTDIR.Bruce Momjian1998-04-056-28/+28
|
* Here are 3 patches (all relative to the src directory) to help withBruce Momjian1998-04-051-5/+7
| | | | | | | | | | | | | | | | | | | | | | | the configuration of v6.3.1. I have replaced the queries for include/lib directories with --with configuration options. I have also included a list of potential tcl/tk include directories directly in the CPPFLAGS variable. As new versions are needed, these should be added to the list in reverse numerical order (libraries are in a separate list near the end). This greatly simplifies the later checks if --with-tcl is set. I hope this solution works for everyone. I also added a check to disable the perl support if postgres was not already installed (as per the instructions in the directory). By the way, why must there be an installed pgsql to compile perl support? This seems odd, at best. Finally, I changed the Makefile in the libpgtcl interface to place the shared libraries at the end of the list of files, not at the beginning. With NetBSD at least, libraries are linked in order, so the original sequence does not work. Brook Milligan
* Pointed out by: Doug Winterburn <dlw@seavme.xroads.com>Marc G. Fournier1998-03-311-0/+1
| | | | | | | 3) Add "#include "config.h" to src/interfaces/ecpg/preproc/pgc.l to correct "strings.h not found". config.h has the proper define to make this work and should probably be near the top of pgc.l before the first include.
* This problem had nothing to do with the upgrades I made. ThereBruce Momjian1998-03-301-3/+3
| | | | | | | | | | | | 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>
* I have been troubled by a segmentation fault when reloading fromBruce Momjian1998-03-261-1/+2
| | | | | | | | | | | | a dumpall. This has been happening when a second \connect is encountered. The faulty code was in fe-connect.c, where the memory for the user password was freed, but the pointer itself was not set to NULL. Later, the memory was reused and the password appeared not to be empty, so that an attempt was made to reference it. Oliver Elphick
* more tcl/tk fixesBruce Momjian1998-03-231-3/+2
|
* Moved sys/types.h to before netdb.hMarc G. Fournier1998-03-221-2/+2
| | | | From: Vince Vielhaber <vev@michvhf.com>
* This patch fixes a couple of minor bugs:Bruce Momjian1998-03-202-1/+6
| | | | | | | | | | | | | | 1) DatabaseMetaData.getPrimaryKeys() would fail saying that there is no table t. 2) PreparedStatement.getObject() was missing some break statements, which was causing updates not to work with JBuilder (supplied by Aaron Dunlop). jdbc fixes from Peter.
* Add missing file.Bruce Momjian1998-03-201-0/+4
|
* HPUX build does not build shared lib versions of libpq and libpq++Bruce Momjian1998-03-202-2/+14
| | | | | | | | | | | | | | -------------------------------------------------------------------------- Test Case: ---------- -------------------------------------------------------------------------- Solution: --------- Add this to the libpq and libpq++ Makefiles to build shared libs: Mike Ferrara
* In libpq-fe.h: #if defined(sun) && defined(sparc) && !defined(__svr4)Bruce Momjian1998-03-201-2/+2
| | | | | | | | | | extern char *sys_errlist[]; #define strerror(A) (sys_errlist[(A)]) #endif /* sunos4 */ is picked up by Solaris when the above is intended only for SunOS. Fix Solaris. Albert Chin-A-Young
* Here's my next patch to bring ecpg to version 1.1. It now correctlyBruce Momjian1998-03-2014-90/+270
| | | | | | handles all transaction commands and the exec sql include command. Michael Meskes
* From: Randy Kunkee <kunkee@pluto.ops.NeoSoft.com>Marc G. Fournier1998-03-151-1/+3
| | | | | | The following patch is to src/interfaces/libpq of postgresql-6.3. The purpose of the patch is to make the initialization of const char *pgresStatus[] match the ExecStatusType enum.
* From: Randy Kunkee <kunkee@pluto.ops.NeoSoft.com>Marc G. Fournier1998-03-157-1336/+1374
| | | | | | | | | | | | | 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.
* From: Peter T Mount <patches@maidast.demon.co.uk>Marc G. Fournier1998-03-153-4/+5
| | | | | | | | | | | | | | | Ok, this fixes three things: 1. It seems (from tests submitted by two people with JBuilder) that JBuilder expects a responce from ResultSetMetaData.getPrecision() & getScale() when used on non numeric types. This patch makes these methods return 0, instead of throwing an exception. 2. Fixes a small bug where getting the postgresql type name returns null. 3. Fixes a problem with ResultSet.getObject() where getting it's string value returns null if you case the object as (PGobject), but returns the value if you case it as it's self.
* Change Postgres95 to PostgreSQL. Update CLUSTER manual page.Bruce Momjian1998-03-143-8/+7
|
* Add ecpg back in againMarc G. Fournier1998-03-051-2/+2
|
* From: Michael Meskes <meskes@topsystem.de>Marc G. Fournier1998-02-2713-84/+159
| | | | No more shift/reduce conflicts. Also all other bugs I know about are fixed.
* Add <sys/types.h> for SunOSMarc G. Fournier1998-02-271-0/+1
| | | | From: t-ishii@sra.co.jp
* From: Darren King <darrenk@insightdist.com>Marc G. Fournier1998-02-273-10/+7
| | | | | | | | | | | | This patch will... 1. Remove the "-Wall" option from the ecpg/lib and ecpg/preproc Makefile. 2. Remove the addition of $(SRCDIR)/include and-or $(SRCDIR)/backend from ecpg/lib, ecpg/preproc, libpq and utils Makefiles. Already in CFLAGS... 3. Set MK_NO_LORDER and RANLIB in Makefile.aix to avoid a couple of extra steps taken care of by the 'ld' command anyways.
* From: Michael Meskes <meskes@topsystem.de>Marc G. Fournier1998-02-271-1/+0
| | | | | Sorry, I just repeated the last call and send out a stupid should be empty mail. Anyway, my last patch missed one change:
* From: Michael Meskes <meskes@topsystem.de>Marc G. Fournier1998-02-275-13/+13
| | | | Subject: [PATCHES] ecpg: correct whenever statement
* Remove compile warning.Bruce Momjian1998-02-261-1/+3
|