Commit Graph

135 Commits

Author SHA1 Message Date
Marc G. Fournier 1054d35a98 Missed an else from Bryan's patch... 1996-08-19 19:28:17 +00:00
Marc G. Fournier 394f7990a0 Turn *off* TCL by default 1996-08-19 18:37:09 +00:00
Marc G. Fournier d0f8a6c4e8 Make the doc directory a conditional...only try to "compile" if it
actually exists...
1996-08-19 18:35:17 +00:00
Marc G. Fournier 0b62293b71 The err() bug creeped back in again...
Pointed out by:  brianc@saintjoe.edu
1996-08-19 18:04:44 +00:00
Marc G. Fournier efafd1506e 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>
1996-08-19 13:50:44 +00:00
Marc G. Fournier ce8790bc10 Here's a minor fix that fixes a casting problem:
-Kurt
1996-08-19 13:40:26 +00:00
Marc G. Fournier d3655e69d6 More run-time checking errors:
-Kurt
1996-08-19 13:36:45 +00:00
Marc G. Fournier 558601bd91 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>
1996-08-19 13:34:49 +00:00
Marc G. Fournier 3e1586adfd 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)
1996-08-19 13:23:19 +00:00
Marc G. Fournier 817bf55a12 |From: Dan McGuirk <mcguirk@indirect.com>
|
|fixed the spelling of 'nonexistent' in a few places...
|
1996-08-19 01:13:51 +00:00
Marc G. Fournier e38de384e2 |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>
1996-08-19 01:07:43 +00:00
Marc G. Fournier f46246a279 fixed err() -> err_out() pointed out by David Bennett... 1996-08-17 07:50:21 +00:00
Marc G. Fournier 7d1402d071 Okay...*last* commit, now to create a release...
README file for regresssion tests from Dr. George
1996-08-02 01:24:00 +00:00
Marc G. Fournier 642668c31d Update to expected.input from Dr. George 1996-08-02 01:18:05 +00:00
Marc G. Fournier 4fff70a819 Fixes:
make TCL conditinal compilation work

Submitted by: Dr_George_D_Detlefsen <drgeorge@madmax.ilt.com>
1996-08-01 19:46:46 +00:00
Marc G. Fournier 164ef6ff2b 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>
1996-08-01 05:11:33 +00:00
Marc G. Fournier 4d837e370c Change the TEMPDIR to be obj instead of /tmp
Suggested by: Michael Babcock <michael@kanji.com>
1996-08-01 05:04:29 +00:00
Marc G. Fournier a82aa45a4d An actual README file for the regression tests
Submitted by: Dr. George
1996-08-01 04:53:22 +00:00
Marc G. Fournier ce48b4d5bd A newer expected.input file for the regression tests
Submitted by: Dr. Geoge
1996-08-01 04:51:49 +00:00
Marc G. Fournier cb34902cbd Move port includes from bin/pg_dump/Makefile to Makefile.global 1996-07-31 18:59:00 +00:00
Marc G. Fournier db174707ba Standardize locations of TCL related files
Submitted by: Dr_George_D_Detlefsen <drgeorge@madmax.ilt.com>
1996-07-31 18:52:38 +00:00
Marc G. Fournier 7bdd8dcac3 This prevent gcc from complaining about casting a short to a char * and
fixes another complaint.

More fixes from Bruce...
1996-07-31 18:48:16 +00:00
Marc G. Fournier 9c0f89c4a4 More patches for BSDi from Bruce 1996-07-31 18:43:58 +00:00
Marc G. Fournier 4e82924eac Row count patch from Bruce 1996-07-31 18:40:12 +00:00
Marc G. Fournier 7d2000e3a7 Fix for <machine.h> bug
Submitted by: Bruce
1996-07-31 17:35:13 +00:00
Marc G. Fournier c317bdc9fd Re-arrange KRBVERS postition
Suggested by: Daniel Kalchev <daniel@digsys.bg>
1996-07-31 17:19:49 +00:00
Marc G. Fournier c114bf330d A "lost in the archives" patch from Chris Dunlop <chris@atlas.onthe.net.au> 1996-07-31 06:09:46 +00:00
Marc G. Fournier dbf2a8c984 Everyone seems to suggestion this is something that should be there...
#include <sys/termios.h>

Submitted by: Dr. George
1996-07-31 06:05:46 +00:00
Marc G. Fournier 5eb17f53b6 Moved src/extend to contrib 1996-07-31 02:30:10 +00:00
Marc G. Fournier c6cf21825a already exists in the contrib directory 1996-07-31 02:28:22 +00:00
Marc G. Fournier 3881cbd2f6 Added <sys/termios.h> for i386_solaris port
Submitted by: Dr_George_D_Detlefsen <drgeorge@ilt.com>
1996-07-31 02:20:59 +00:00
Marc G. Fournier a05ed5bc11 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
1996-07-31 02:19:23 +00:00
Marc G. Fournier 4477b6f6c2 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>
1996-07-31 02:11:23 +00:00
Marc G. Fournier 1af2cc0d58 Style didn't appeal to some...:)
Submitted by:  Bruce Momjian <maillist@candle.pha.pa.us>
1996-07-31 02:07:25 +00:00
Marc G. Fournier e0d48c317c Fixes: Floating point exception in psql
Submitted by: Dan McGuirk <mcguirk@indirect.com>
1996-07-31 02:06:00 +00:00
Marc G. Fournier 74cdf92868 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>
1996-07-30 07:56:04 +00:00
Marc G. Fournier e5e12f6405 More cleanups by "Kurt J. Lidl" <lidl@va.pubnix.com> 1996-07-30 07:47:58 +00:00
Marc G. Fournier 519496b63e More cleandups from: "Kurt J. Lidl" <lidl@va.pubnix.com> 1996-07-30 07:41:38 +00:00
Marc G. Fournier be19feb14a The decode function in psql.c doesn't return anything, so its
declaration is incorrect.

-Kurt
1996-07-29 20:58:42 +00:00
Marc G. Fournier c4ea55d2c9 clean up /tmp behind itself
submitted by: bruce
1996-07-29 20:52:24 +00:00
Marc G. Fournier 496b937dca 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
1996-07-29 20:51:41 +00:00
Marc G. Fournier 48cde8d83b fix a redeclaration error
submitted by Kurt
1996-07-29 20:49:02 +00:00
Marc G. Fournier 20f3236650 Modifications for bsdi from Kurt(sp?) 1996-07-29 06:54:01 +00:00
Marc G. Fournier 7450ea6dfb cosmetic changes: char* x changed to char *x
submitted by: bruce
1996-07-28 07:08:15 +00:00
Marc G. Fournier 0e887c541e reversed bruces patch to getopt() loop about optarg
submitted by: bruce
1996-07-28 06:59:43 +00:00
Marc G. Fournier 4b3cb03104 fixes: It appears several routines use lcons to store integers rather than
pointers.

submitted by: bruce
1996-07-28 06:56:28 +00:00
Marc G. Fournier b834d27bc9 small port fixes for sparc_solaris
submitted by: jason
1996-07-28 06:54:15 +00:00
Julian Assange ed3240d093 bugfix: if NOREADLINE was not defined and input was not from a tty, then
the getopt() was not executed.
1996-07-28 06:48:42 +00:00
Marc G. Fournier 64b130a8e7 Various fixes required for psql
Submitted by: Bruce
1996-07-27 04:38:22 +00:00
Marc G. Fournier edb519b14c and now, the long awaited PAGER patches from Bruce...
Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
1996-07-27 02:55:23 +00:00