Marc G. Fournier [Wed, 21 Aug 1996 04:31:14 +0000 (04:31 +0000)]
|May I suggest to add access to the oid of an inserted
|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
|
Marc G. Fournier [Wed, 21 Aug 1996 04:28:13 +0000 (04:28 +0000)]
Here is a patch for Versions 1 and 2 that corrects the following makefile
bugs:
1) linker flags LDFLAGS are missing on some of the links.
2) libpq.a is not listed as a dependency for the src/bin programs
that depend on it.
--
Bryan Henderson Phone 408-227-6803
San Jose, California
Marc G. Fournier [Wed, 21 Aug 1996 04:23:34 +0000 (04:23 +0000)]
Here's a patch for Versions 1 and 2 that fixes the following bug:
When you try to do any UPDATE of the catalog class pg_class, such as
to change ownership of a class, the backend crashes.
This is really two serial bugs: 1) there is a hardcoded copy of the
schema of pg_class in the postgres program, and it doesn't match the
actual class that initdb creates in the database; 2) Parts of postgres
determine whether to pass an attribute value by value or by reference
based on the attbyval attribute of the attribute in class
pg_attribute. Other parts of postgres have it hardcoded. For the
relacl[] attribute in class pg_class, attbyval does not match the
hardcoded expectation.
The fix is to correct the hardcoded schema for pg_attribute and to
change the fetchatt macro so it ignores attbyval for all variable
length attributes. The fix also adds a bunch of logic documentation and
extends genbki.sh so it allows source files to contain such documentation.
--
Bryan Henderson Phone 408-227-6803
San Jose, California
Marc G. Fournier [Tue, 20 Aug 1996 23:47:45 +0000 (23:47 +0000)]
change gawk to awk ... creeped in from a previous patch..
Marc G. Fournier [Tue, 20 Aug 1996 15:25:29 +0000 (15:25 +0000)]
No wonder the Linux version kept screwing up...err() was fixed in
the wrong file...
Pointed out by: Philip Plane <P.J.Plane@massey.ac.nz>
Marc G. Fournier [Tue, 20 Aug 1996 04:16:20 +0000 (04:16 +0000)]
i
Improvements to Makefiles to compensate for errors in compiling
From: bryanh@giraffe.netgate.net (Bryan Henderson)
Marc G. Fournier [Tue, 20 Aug 1996 04:10:35 +0000 (04:10 +0000)]
i
Improvements to Makefiles to compensate for errors in compiling
From: bryanh@giraffe.netgate.net (Bryan Henderson)
Marc G. Fournier [Tue, 20 Aug 1996 04:06:12 +0000 (04:06 +0000)]
Added a comment aruond the HISTORY_LIB/INC defines
Marc G. Fournier [Tue, 20 Aug 1996 04:02:01 +0000 (04:02 +0000)]
Furthre cleanup of -lreadline/-lhistory
Marc G. Fournier [Tue, 20 Aug 1996 04:00:39 +0000 (04:00 +0000)]
Fix a bug with using READLINE that prevents psql from compiling
Marc G. Fournier [Mon, 19 Aug 1996 19:36:01 +0000 (19:36 +0000)]
BSD44_derived required -ltermcap as well...
Marc G. Fournier [Mon, 19 Aug 1996 19:34:48 +0000 (19:34 +0000)]
Change default of HISTORY_LIB so that it is disabled by default
Marc G. Fournier [Mon, 19 Aug 1996 19:32:58 +0000 (19:32 +0000)]
FreeBSD has libreadline,but not libhistory...
Change Makefile so that it can be commented out in Makefile.global
Marc G. Fournier [Mon, 19 Aug 1996 19:28:17 +0000 (19:28 +0000)]
Missed an else from Bryan's patch...
Marc G. Fournier [Mon, 19 Aug 1996 18:37:09 +0000 (18:37 +0000)]
Turn *off* TCL by default
Marc G. Fournier [Mon, 19 Aug 1996 18:35:17 +0000 (18:35 +0000)]
Make the doc directory a conditional...only try to "compile" if it
actually exists...
Marc G. Fournier [Mon, 19 Aug 1996 18:04:44 +0000 (18:04 +0000)]
The err() bug creeped back in again...
Pointed out by: brianc@saintjoe.edu
Marc G. Fournier [Mon, 19 Aug 1996 13:50:44 +0000 (13:50 +0000)]
Added a SVR4 port
---
below my signature, there are a coupls of diffs and files in a shell
archive, which were needed to build postgres95 1.02 on Siemens Nixdorfs
MIPS based SINIX systems. Except for the compiler switches "-W0" and
"-LD-Blargedynsym" these diffs should also apply for other SVR4 based
systems. The changes in "Makefile.global" and "genbki.sh" can probably
be ignored (I needed gawk, to make the script run).
There is one bugfix thou. In "src/backend/parser/sysfunc.c" the
function in this file didn't honor the EUROPEAN_DATES ifdef.
---
Submitted by: Frank Ridderbusch <ridderbusch.pad@sni.de>
Marc G. Fournier [Mon, 19 Aug 1996 13:40:26 +0000 (13:40 +0000)]
Here's a minor fix that fixes a casting problem:
-Kurt
Marc G. Fournier [Mon, 19 Aug 1996 13:36:45 +0000 (13:36 +0000)]
More run-time checking errors:
-Kurt
Marc G. Fournier [Mon, 19 Aug 1996 13:34:49 +0000 (13:34 +0000)]
Fixes:
Here's a couple more small fixes that I've made to make my runtime
checker happy with the code. More along the lines of those that
I sent in the past, ie, a pointer to an array != the name of
an array. The last patch is that I mailed about yesterday -- I got
two replies of "do it", so it's done. As far as I can tell, however,
the function in question is never called by pg95, so either way
it can't hurt...
From: "Kurt J. Lidl" <lidl@va.pubnix.com>
Marc G. Fournier [Mon, 19 Aug 1996 13:23:19 +0000 (13:23 +0000)]
Fixes for PQsetdb():
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)
Marc G. Fournier [Mon, 19 Aug 1996 01:13:51 +0000 (01:13 +0000)]
|From: Dan McGuirk <mcguirk@indirect.com>
|
|fixed the spelling of 'nonexistent' in a few places...
|
Marc G. Fournier [Mon, 19 Aug 1996 01:07:43 +0000 (01:07 +0000)]
|This patch fixes a backend crash that happens sometimes when you try to
|join on a field that contains NULL in some rows. Postgres tries to
|compute a hash value of the field you're joining on, but when the field
|is NULL, the pointer it thinks is pointing to the data is really just
|pointing to random memory. This forces the hash value of NULL to be 0.
|
|It seems that nothing matches NULL on joins, even other NULL's (with or
|without this patch). Is that what's supposed to happen?
|
Submitted by: Dan McGuirk <mcguirk@indirect.com>
Marc G. Fournier [Sat, 17 Aug 1996 07:50:21 +0000 (07:50 +0000)]
fixed err() -> err_out() pointed out by David Bennett...
Marc G. Fournier [Fri, 2 Aug 1996 01:24:00 +0000 (01:24 +0000)]
Okay...*last* commit, now to create a release...
README file for regresssion tests from Dr. George
Marc G. Fournier [Fri, 2 Aug 1996 01:18:05 +0000 (01:18 +0000)]
Update to expected.input from Dr. George
Marc G. Fournier [Thu, 1 Aug 1996 19:46:46 +0000 (19:46 +0000)]
Fixes:
make TCL conditinal compilation work
Submitted by: Dr_George_D_Detlefsen <drgeorge@madmax.ilt.com>
Marc G. Fournier [Thu, 1 Aug 1996 05:11:33 +0000 (05:11 +0000)]
Fixes:
Originally, I thought the problem was caused by a function that gets
called as a normal function where we want to return a value, and as a
signal handler where we need to have it accept a parameter (the signal
number) and it returns nothing, I was going to case the function name in
the signal call as (void (*)(int)).
Looking at all the source, it turns out this function only gets used as
a signal handler, so I set an int parameter and return void.
I have removed the Linux defines because they are not needed. BSD let
this sloppiness slide. Linux gave a compile error.
Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
Marc G. Fournier [Thu, 1 Aug 1996 05:04:29 +0000 (05:04 +0000)]
Change the TEMPDIR to be obj instead of /tmp
Suggested by: Michael Babcock <michael@kanji.com>
Marc G. Fournier [Thu, 1 Aug 1996 04:53:22 +0000 (04:53 +0000)]
An actual README file for the regression tests
Submitted by: Dr. George
Marc G. Fournier [Thu, 1 Aug 1996 04:51:49 +0000 (04:51 +0000)]
A newer expected.input file for the regression tests
Submitted by: Dr. Geoge
Marc G. Fournier [Wed, 31 Jul 1996 18:59:00 +0000 (18:59 +0000)]
Move port includes from bin/pg_dump/Makefile to Makefile.global
Marc G. Fournier [Wed, 31 Jul 1996 18:52:38 +0000 (18:52 +0000)]
Standardize locations of TCL related files
Submitted by: Dr_George_D_Detlefsen <drgeorge@madmax.ilt.com>
Marc G. Fournier [Wed, 31 Jul 1996 18:48:16 +0000 (18:48 +0000)]
This prevent gcc from complaining about casting a short to a char * and
fixes another complaint.
More fixes from Bruce...
Marc G. Fournier [Wed, 31 Jul 1996 18:43:58 +0000 (18:43 +0000)]
More patches for BSDi from Bruce
Marc G. Fournier [Wed, 31 Jul 1996 18:40:12 +0000 (18:40 +0000)]
Row count patch from Bruce
Marc G. Fournier [Wed, 31 Jul 1996 17:35:13 +0000 (17:35 +0000)]
Fix for <machine.h> bug
Submitted by: Bruce
Marc G. Fournier [Wed, 31 Jul 1996 17:19:49 +0000 (17:19 +0000)]
Re-arrange KRBVERS postition
Suggested by: Daniel Kalchev <daniel@digsys.bg>
Marc G. Fournier [Wed, 31 Jul 1996 06:09:46 +0000 (06:09 +0000)]
A "lost in the archives" patch from Chris Dunlop <chris@atlas.onthe.net.au>
Marc G. Fournier [Wed, 31 Jul 1996 06:05:46 +0000 (06:05 +0000)]
Everyone seems to suggestion this is something that should be there...
#include <sys/termios.h>
Submitted by: Dr. George
Marc G. Fournier [Wed, 31 Jul 1996 02:30:10 +0000 (02:30 +0000)]
Moved src/extend to contrib
Marc G. Fournier [Wed, 31 Jul 1996 02:28:22 +0000 (02:28 +0000)]
already exists in the contrib directory
Marc G. Fournier [Wed, 31 Jul 1996 02:20:59 +0000 (02:20 +0000)]
Added <sys/termios.h> for i386_solaris port
Submitted by: Dr_George_D_Detlefsen <drgeorge@ilt.com>
Marc G. Fournier [Wed, 31 Jul 1996 02:19:23 +0000 (02:19 +0000)]
Fixes:
In postgres95/src/backend/nodes/readfuncs, lines 1188 and 1189,
local_node->relname is taken to point to a NameType, while its
defined as a pointer to char. Both the casting to Name and the
call of namestrcpy should, IMHO, be changed appropriately (first
patch).
As far as I could see from the Linux signal header file,
a signal handler is declared as
typedef void (*__sighandler_t)(int);
Few changes to postgres95/src/backend/storage/lmgr/proc.c seem
appropriate to comply with this.
Finally, postgres95/src/bin/pg_version/pg_version.c defines
a function GetDataHome (by default, returning an integer)
and returns NULL in the function, which isn't an integer...
Submitted by: ernst.molitor@uni-bonn.de
Marc G. Fournier [Wed, 31 Jul 1996 02:11:23 +0000 (02:11 +0000)]
Fixes:
updates the psql.1 manual page for \ options
add row count and ties it to the header option
updated manual pages and comment for above change
got \? to display in one screen-full (almost, \? scrolls off top)
moved \r to \E, and \z to \r (for historical reasons with monitor)
small code alignment cleanup
Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
Marc G. Fournier [Wed, 31 Jul 1996 02:07:25 +0000 (02:07 +0000)]
Style didn't appeal to some...:)
Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
Marc G. Fournier [Wed, 31 Jul 1996 02:06:00 +0000 (02:06 +0000)]
Fixes: Floating point exception in psql
Submitted by: Dan McGuirk <mcguirk@indirect.com>
Marc G. Fournier [Tue, 30 Jul 1996 07:56:04 +0000 (07:56 +0000)]
Fixes:
> INDEXED searches in some cases DO NOT WORK.
> Although simple search expressions (i.e. with a constant value on
> the right side of an operator) work, performing a join (by putting
> a field of some other table on the right side of an operator) produces
> empty output.
> WITHOUT indices, everything works fine.
>
submitted by: "Vadim B. Mikheev" <root@ais.sable.krasnoyarsk.su>
Marc G. Fournier [Tue, 30 Jul 1996 07:47:58 +0000 (07:47 +0000)]
More cleanups by "Kurt J. Lidl" <lidl@va.pubnix.com>
Marc G. Fournier [Tue, 30 Jul 1996 07:41:38 +0000 (07:41 +0000)]
More cleandups from: "Kurt J. Lidl" <lidl@va.pubnix.com>
Marc G. Fournier [Mon, 29 Jul 1996 20:58:42 +0000 (20:58 +0000)]
The decode function in psql.c doesn't return anything, so its
declaration is incorrect.
-Kurt
Marc G. Fournier [Mon, 29 Jul 1996 20:52:24 +0000 (20:52 +0000)]
clean up /tmp behind itself
submitted by: bruce
Marc G. Fournier [Mon, 29 Jul 1996 20:51:41 +0000 (20:51 +0000)]
Change ordering of "user modified variables" so that they are at
the top of th efile instead of scattered throughout
Turned off default behavior of compiling with -g enabled
submitted by; bruce
Marc G. Fournier [Mon, 29 Jul 1996 20:49:02 +0000 (20:49 +0000)]
fix a redeclaration error
submitted by Kurt
Marc G. Fournier [Mon, 29 Jul 1996 06:54:01 +0000 (06:54 +0000)]
Modifications for bsdi from Kurt(sp?)
Marc G. Fournier [Sun, 28 Jul 1996 07:08:15 +0000 (07:08 +0000)]
cosmetic changes: char* x changed to char *x
submitted by: bruce
Marc G. Fournier [Sun, 28 Jul 1996 06:59:43 +0000 (06:59 +0000)]
reversed bruces patch to getopt() loop about optarg
submitted by: bruce
Marc G. Fournier [Sun, 28 Jul 1996 06:56:28 +0000 (06:56 +0000)]
fixes: It appears several routines use lcons to store integers rather than
pointers.
submitted by: bruce
Marc G. Fournier [Sun, 28 Jul 1996 06:54:15 +0000 (06:54 +0000)]
small port fixes for sparc_solaris
submitted by: jason
Julian Assange [Sun, 28 Jul 1996 06:48:42 +0000 (06:48 +0000)]
bugfix: if NOREADLINE was not defined and input was not from a tty, then
the getopt() was not executed.
Marc G. Fournier [Sat, 27 Jul 1996 04:38:22 +0000 (04:38 +0000)]
Various fixes required for psql
Submitted by: Bruce
Marc G. Fournier [Sat, 27 Jul 1996 02:55:23 +0000 (02:55 +0000)]
and now, the long awaited PAGER patches from Bruce...
Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
Marc G. Fournier [Sat, 27 Jul 1996 02:40:45 +0000 (02:40 +0000)]
Further modifications for fixing createuser bug...
Submitted by: Rick Weldon <rick@wisetech.com>
Marc G. Fournier [Sat, 27 Jul 1996 02:29:51 +0000 (02:29 +0000)]
This is a patch to pg_dump which fixes varchar and char printing in the
case where the attribute length is variable (stored as -1). Previously,
you'd get output that looked like:
CREATE TABLE foo (bar varchar(-1));
Monitor and psql don't like this at all :). Here is a fix:
Submitted by: Adam Sussman <myddryn@vidya.com>
Marc G. Fournier [Sat, 27 Jul 1996 02:27:55 +0000 (02:27 +0000)]
My patch to fe-connect.c introduced a new bug which is triggered only, if
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>
Marc G. Fournier [Sat, 27 Jul 1996 02:19:18 +0000 (02:19 +0000)]
Fixed these script sonce and for all?
Submitted by: Rick Weldon <rick@wisetech.com>
Marc G. Fournier [Sat, 27 Jul 1996 02:06:10 +0000 (02:06 +0000)]
corrects the output for a 'SELECT DISTINCT ON ...' at line 2900
submitted by: Dr_George_D_Detlefsen <drgeorge@ilt.com>
Marc G. Fournier [Sat, 27 Jul 1996 02:04:12 +0000 (02:04 +0000)]
Fix where 'make clean' wipes out everything if no obj directory
exists...
Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
Marc G. Fournier [Fri, 26 Jul 1996 20:39:04 +0000 (20:39 +0000)]
Missed a small patch fro mBruce for BSDi
Marc G. Fournier [Fri, 26 Jul 1996 20:15:40 +0000 (20:15 +0000)]
should always take mail headers out of Makefile files befor ecommitting :)
Marc G. Fournier [Fri, 26 Jul 1996 20:03:21 +0000 (20:03 +0000)]
Minor bug fix
Marc G. Fournier [Fri, 26 Jul 1996 19:58:04 +0000 (19:58 +0000)]
regression Makefile, rev 2
Submitted by: Dr. George
Marc G. Fournier [Thu, 25 Jul 1996 20:45:05 +0000 (20:45 +0000)]
Add in port to DG/UX
Submitted by: "Brian E. Gallew" <geek+@cmu.edu>
Marc G. Fournier [Thu, 25 Jul 1996 20:36:46 +0000 (20:36 +0000)]
Fix applied for NESTLOOP bug
submitted by: vadim@sable.krasnoyarsk.su (Vadim B. Mikheev)
Marc G. Fournier [Thu, 25 Jul 1996 20:01:51 +0000 (20:01 +0000)]
fixed usuage of -ltermcap for psql
submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
Marc G. Fournier [Thu, 25 Jul 1996 19:56:59 +0000 (19:56 +0000)]
improvements to regression testing
submitted by: dr. george
Marc G. Fournier [Thu, 25 Jul 1996 19:48:24 +0000 (19:48 +0000)]
modified i386_solaris port
submitted by: dr. george
Marc G. Fournier [Thu, 25 Jul 1996 19:45:31 +0000 (19:45 +0000)]
multiple define of 'union semun' removed
submitted by: dr. george
Marc G. Fournier [Thu, 25 Jul 1996 07:28:12 +0000 (07:28 +0000)]
moved the FLEX stuf from Makefile.global to here
Marc G. Fournier [Thu, 25 Jul 1996 07:27:08 +0000 (07:27 +0000)]
removed tas.s refernce
Marc G. Fournier [Thu, 25 Jul 1996 07:26:37 +0000 (07:26 +0000)]
Dr George suggested removing Makefile.custom altogether, to reduce
any confusion...so its gone...
Marc G. Fournier [Thu, 25 Jul 1996 06:55:49 +0000 (06:55 +0000)]
Switched from using monitor to using psql
Submitted by: Rick Weldon <rick@wisetech.com>
Marc G. Fournier [Thu, 25 Jul 1996 06:54:26 +0000 (06:54 +0000)]
Removed monitor from compile/install (will eventually be removed
completely)
Julian Assange [Thu, 25 Jul 1996 06:46:35 +0000 (06:46 +0000)]
Large re-write/enhancement. In pg-101 Jolly only included a smaller part
of my (proff) patch. This is the rest of it, with a few, mainly aesthetic
changes. I've removed a lot of redundency from the original code,
added support for the new PQprint() routines in libpq, expanded tables,
and a few generally nifty ways of massaging data in and out of the
backend. Still needs some good stress testing.
Julian Assange [Thu, 25 Jul 1996 06:21:11 +0000 (06:21 +0000)]
PQprint() routines. The older code is still there for historical
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.
Marc G. Fournier [Thu, 25 Jul 1996 01:11:15 +0000 (01:11 +0000)]
Ack, -I$(srcdir)/backend *is* required...
Marc G. Fournier [Thu, 25 Jul 1996 00:30:02 +0000 (00:30 +0000)]
comment out USE_TCL...having USE_TCL=true seems to imply that you
have to have TCL to use postgres95, which you don't
Marc G. Fournier [Thu, 25 Jul 1996 00:26:21 +0000 (00:26 +0000)]
there are no includes files in backend, there should be, so why look
there?
Marc G. Fournier [Thu, 25 Jul 1996 00:22:19 +0000 (00:22 +0000)]
Fix compiler not finding libpgtcl.h header file
Marc G. Fournier [Thu, 25 Jul 1996 00:19:42 +0000 (00:19 +0000)]
Added an empty Makefile.custom file...
Marc G. Fournier [Tue, 23 Jul 1996 05:51:29 +0000 (05:51 +0000)]
Ack, missed two files from the merge...looks like a .11 is goin gto have
to go out after all :(
Marc G. Fournier [Tue, 23 Jul 1996 05:44:10 +0000 (05:44 +0000)]
iBrought in a fix for backend crashes
Submitted by: "Vadim B. Mikheev" <vadim@sable.krasnoyarsk.su>
Marc G. Fournier [Tue, 23 Jul 1996 05:24:35 +0000 (05:24 +0000)]
comment out inclue of Makefile.custom, as i tbreaks compiling the
bin directory
Marc G. Fournier [Tue, 23 Jul 1996 03:38:44 +0000 (03:38 +0000)]
Last changes to src from Dr. George *wipes brow*
Marc G. Fournier [Tue, 23 Jul 1996 03:35:14 +0000 (03:35 +0000)]
Alot of "changes" from Dr. George's source tree...
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 :(
Marc G. Fournier [Tue, 23 Jul 1996 03:24:47 +0000 (03:24 +0000)]
More Merge's from Dr' sourec tree
Marc G. Fournier [Tue, 23 Jul 1996 03:19:34 +0000 (03:19 +0000)]
modifications to regressoin tests
Marc G. Fournier [Tue, 23 Jul 1996 03:13:58 +0000 (03:13 +0000)]
More merge's from Dr. George's sourec tree
Marc G. Fournier [Tue, 23 Jul 1996 03:05:23 +0000 (03:05 +0000)]
spelling error...and correction