summaryrefslogtreecommitdiff
path: root/src/interfaces
Commit message (Collapse)AuthorAgeFilesLines
* Add ability to deal with the fmgr.h dependency.Bryan Henderson1996-11-041-7/+13
|
* Rename CDEBUG to COPTBruce Momjian1996-11-041-6/+6
|
* Removed PORTNAME_. Use OS version only.Bruce Momjian1996-11-043-8/+6
|
* shared build fails, but the rest compiles...formatting error in theMarc G. Fournier1996-11-034-11/+16
| | | | cc -shared, I believe...
* Continuation of make file simplification; deal with header file shuffle.Bryan Henderson1996-11-021-52/+87
|
* Changed include path.Bruce Momjian1996-10-311-2/+2
|
* Changes to libpgtcl submitted by: wieck@sapserv.debis.de (Jan Wieck)Marc G. Fournier1996-10-307-119/+368
| | | | | | | | | | | | | | | 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.
* Fix sigaction again to try for portability.Bryan Henderson1996-10-291-3/+3
|
* Add CFLAGS+=-DPOSTPORT=... so we can take it out of the global CFLAGS.Bryan Henderson1996-10-251-1/+3
|
* Change treatment of sigaction structure again to include even more platforms.Bryan Henderson1996-10-161-2/+8
| | | | Thanks D'Arcy.
* Remove 4th element of sigaction structure so it works on more platforms.Bryan Henderson1996-10-151-2/+2
|
* Added consistent include file handling for MAXHOSTNAMELEN.Bruce Momjian1996-10-131-2/+5
| | | | | If I have introduced any syntax errors with this, I will patch them in the morning, and Marc will have a good laugh.
* Add PGUSER environment variable for client to specify Postgres username.Bryan Henderson1996-10-102-34/+78
|
* Well I haven't received any feedback pro or con re my suggested new TclMarc G. Fournier1996-10-073-3/+122
| | | | | | | | | | | | | 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
* Fix location of include files to match postgres.h includes.Bruce Momjian1996-09-251-2/+4
|
* CFLAGS +- -I... got messed by one of Bryan's patchesMarc G. Fournier1996-09-231-3/+3
| | | | Fix Submitted by: Bryan himself :)
* Here's a patch that I discussed recently on pg95-dev that changes theMarc G. Fournier1996-09-232-63/+54
| | | | | | | | | | | | way one creates a database system. Parts that were in "make install" are not either in "make all" or initdb. Nothing goes in the PGDATA directory besides user data. Creating multiple database systems is easier. In addition to applying the patch, it is necessary to move the file libpq/pg_hba to backend/libpq/pg_hba.sample. Submitted by: Bryan Henderson <bryanh@giraffe.netgate.net>
* I have made some corrections to my previous patches for retrieving arrayMarc G. Fournier1996-09-161-1/+198
| | | | | | | 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>
* Fixes:Marc G. Fournier1996-09-161-1/+24
| | | | | | | | | | | | | | | Async notifies received while a backend is in the middle of a begin/end transaction block are lost by libpq when the final end command is issued. The bug is in the routine PQexec of libpq. The routine throws away any message from the backend when a message of type 'C' is received. This type of message is sent when the result of a portal query command with no tuples is returned. Unfortunately this is the case of the end command. As all async notification are sent only when the transaction is finished, if they are received in the middle of a transaction they are lost in the libpq library. I added some tracing code to PQexec and this is the output: Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
* modifications required to reflect centralized include filesMarc G. Fournier1996-08-281-1/+2
|
* |May I suggest to add access to the oid of an insertedMarc G. Fournier1996-08-211-1/+5
| | | | | | | | | | | | | | | |record, by a small patch to libpq++? At least until the |feature that will allow dumped oid's to be re-loaded into |a database becomes available, I need access to the oids |of newly created records... To this end, I have written a |three-line wrapper for the PQoidStatus function in libpq and |named this wrapper OidStatus() (I'd appreciate suggestions for |a name that would better fit into the general naming scheme). | |Regards, | |Ernst |
* Here's a minor fix that fixes a casting problem:Marc G. Fournier1996-08-191-2/+2
| | | | -Kurt
* Fixes:Marc G. Fournier1996-08-191-63/+53
| | | | | | | | | | | | | When you connect to a database with PQsetdb, as with psql, depending on how your uninitialized variables are set, you can get a failure with a "There is no connection to the backend" message. The fix is to move a call to PQexec() from inside connectDB() to PQsetdb() after connectDB() returns to PQsetdb(). That way a connection doesn't have to be already established in order to establish it! From: bryanh@giraffe.netgate.net (Bryan Henderson)
* |Release_2_0Marc G. Fournier1996-08-141-2/+3
| | | | | | | | | | | | | |Here is a fix for the psql alignment problem. It turns out that libpq |was trying to determine if the column contained only numeric values so |it could right justify it. The 'e' values were taked as exponient |values and all columns were considered numeric. | |The patch excludes 'e' and 'E' as being valid first-column numeric |values. | Submitted by: Bruce...
* |Marc G. Fournier1996-08-141-4/+18
| | | | | | | | | | | | | | | | |We're all too familiar with psql's "no response from backend" message. |Users can't tell what this means, and psql continues prompting for |commands after it even though the backend is dead and no commands can |succeed. It eventually dies on a signal when the dead socket fills |up. I extended the message to offer a better explanation and made |psql exit when it finds the backend is dead. | |I also added a short message and newline when the user does a ctl-D so |it doesn't mess up the terminal display. | | Submitted by: Bryan Henderson <bryanh@giraffe.netgate.net>
* Fixes:Marc G. Fournier1996-08-132-7/+38
| | | | | | | | | | | | | | | | | | | | | | | Attached is a patch to allow libpq to determine if a field is null. This is needed because text fields will return a PQgetlength() of 0 whether it is '' or NULL. There is even a comment in the source noting the fact. I have changed the value of the 'len' field for NULL result fields. If the field is null, the len is set to -1 (NULL_LEN). I have changed PQgetlength() to return a 0 length for both '' and NULL. A new function PQgetisnull() returns true or false for NULL. The only risk is to applications that do not use the suggested PQgetlength() call, but read the result 'len' field directly. As this is not recommended, I think we are safe here. A separate documentation patch will be sent. Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
* Updates to libpq to fix breakage in previous patch...Marc G. Fournier1996-08-102-56/+57
| | | | Submitted by: darcy@druid.druid.com (D'Arcy J.M. Cain)
* Fixes for:Marc G. Fournier1996-08-066-89/+90
| | | | | | | | | | | Here are a few minor fixes to Postgres95. Mostly I have added const to some of the char pointers. There was also a missing header file and a place where it looks like "==" was used when "=" was meant. I also changed some variables from Pfin and Pfout tp pfin and pfout because the latter shadow global variables and that just seems like an unsafe practice which I like to avoid. Submitted by: "D'Arcy J.M. Cain" <darcy@druid.druid.com>
* Change the TEMPDIR to be obj instead of /tmpMarc G. Fournier1996-08-011-2/+2
| | | | Suggested by: Michael Babcock <michael@kanji.com>
* Row count patch from BruceMarc G. Fournier1996-07-312-26/+38
|
* Everyone seems to suggestion this is something that should be there...Marc G. Fournier1996-07-311-4/+1
| | | | | | #include <sys/termios.h> Submitted by: Dr. George
* Added <sys/termios.h> for i386_solaris portMarc G. Fournier1996-07-311-2/+3
| | | | Submitted by: Dr_George_D_Detlefsen <drgeorge@ilt.com>
* Fixes: Floating point exception in psqlMarc G. Fournier1996-07-311-2/+5
| | | | Submitted by: Dan McGuirk <mcguirk@indirect.com>
* clean up /tmp behind itselfMarc G. Fournier1996-07-291-1/+2
| | | | submitted by: bruce
* small port fixes for sparc_solarisMarc G. Fournier1996-07-281-1/+9
| | | | submitted by: jason
* and now, the long awaited PAGER patches from Bruce...Marc G. Fournier1996-07-272-41/+65
| | | | Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
* My patch to fe-connect.c introduced a new bug which is triggered only, ifMarc G. Fournier1996-07-271-8/+8
| | | | | | | | | Kerberos is being used (attempt to free static memory). The error was caused by a confusing doublespeak of fe_getauthname(): Returns a pointer to static memory, if you authenticate via Kerberos, a pointer to dynamic memory otherwise. Submitted by: Erich Stamberger <eberger@gewi.kfunigraz.ac.at>
* PQprint() routines. The older code is still there for historicalJulian Assange1996-07-251-2/+2
| | | | | | compatibility. There isn't much difference here against my previous PQprint() code, except that you can add optional arguments to the <table args> in html.
* Last changes to src from Dr. George *wipes brow*Marc G. Fournier1996-07-232-3/+29
|
* Alot of "changes" from Dr. George's source tree...Marc G. Fournier1996-07-234-120/+220
| | | | | | | | Most of the changes in here look to b epurely cosmetic, and don't affect anything... ...and some stuff is completely questionable...in that I may have reversed some of the stuf fwe already had :(
* - libpq calls "fe_getauthname()" two times in "fe-connect.c", butMarc G. Fournier1996-07-191-15/+19
| | | | | | doesn't free the buffer allocated by this function. - submitted by: Erich Stamberger <eberger@gewi.kfunigraz.ac.at>
* Fix PAGER bug in createuser/etc scriptsMarc G. Fournier1996-07-191-1/+40
| | | | submitted by: Bruce Momjian (root@candle.pha.pa.us)
* libpq and psql.c have been modified to do various things they didn't doMarc G. Fournier1996-07-182-133/+308
| | | | | | | | | | | before (plus some optimisations/bug fixes et al). I've included a small demo transcript below. Note that all of of the display functionality/intelligence you see here, can be had merely by calling the new LIBPQ PQprint() routine with the appropriate arguments/options, including the HTML3 output guff. submitted by: Julian Assange <proff@suburbia.net>
* fixes for several potential null pointer dereferencesMarc G. Fournier1996-07-122-15/+140
| | | | submitted by: Paul "Shag" Walmsley <ccshag@cclabs.missouri.edu>
* Postgres95 1.01 Distribution - Virgin SourcesPG95-1_01Marc G. Fournier1996-07-0936-0/+5802