Commit Graph

169 Commits

Author SHA1 Message Date
2857a3899e More declaration mis-match fixes... 1996-09-21 08:19:32 +00:00
52f9fcd737 Now match the declaration in fe-auth.c to the one in fe-auth.h :) 1996-09-21 08:16:31 +00:00
74025d0fef fix a conflicting declaration problem with fe_setauthsvc()... 1996-09-21 08:15:00 +00:00
5ca943d398 slight fix to Makefile.inc so that gram.c/parse.h get put into
backend/obj instead of into backend

there is probably a better fix for this, but looking at the Makefile.inc,
I can't find a reason *why* it isn't putting them into obj...
1996-09-21 07:47:48 +00:00
cd2f4476f0 POSTPORT should be 5432, not 6543 1996-09-21 06:20:19 +00:00
df79870a82 Patches to make POSTPORT changes in scripts
Originally submitted by: ernst.molitor@uni-bonn.de
resubmitted by: D'Arcy Cain
1996-09-21 06:18:52 +00:00
6661a8dd1c This patch stops the Postgres build from ignoring the fact that yacc
has failed to create gram.c.

--
Bryan Henderson                                    Phone 408-227-6803
San Jose, California
1996-09-21 06:06:49 +00:00
741d323b5e Hey, I didn't take it out, and its in the 2.0 source tree...*sigh* 1996-09-19 20:28:22 +00:00
43b28429ef A fix for the pg_log bug
Submitted by: "Vadim B. Mikheev" <vadim@sable.krasnoyarsk.su>
1996-09-19 19:47:31 +00:00
7f34bdd31e More sync ups... 1996-08-28 01:13:37 +00:00
2d6dec8391 Another mis-sync... 1996-08-27 17:37:27 +00:00
d9cc8326df Somehow, we got out of sync here
Pointed out by Bryan
1996-08-27 17:33:33 +00:00
8be2860854 The following patch makes postmaster -D work. -D specifies a different PGDATA
directory.  The code that looks for the pg_hba file doesn't use it, though,
so the postmaster uses the wrong pg_hba file.  Also, when the postmaster
looks in one directory and the user thinks it is looking in another
directory, the error messages don't give enough information to solve the
problem.  I extended the error message for this.


Submitted by: Bryan
1996-08-26 20:35:29 +00:00
17c542fb43 |The patch that is applied at the end of the email makes sure that these
|conditions are always met. The patch can be applied to any version
|of Postgres95 from 1.02 to 1.05. After applying the patch, queries
|using indices on bpchar and varchar fields should (hopefully ;-) )
|always return the same tuple set regardless to the fact whether
|indices are used or not.
|

Submitted by: Gerhard Reithofer <tbr_laa@AON.AT>
1996-08-26 20:27:46 +00:00
aeb6656433 Take a chance that I'm correct:
attno is used in an if statement, yet isn't defined, nor used
anywhere else (~line 945)
1996-08-26 06:53:03 +00:00
2af4f0aa7c Fix the prototype for pg_dump's dumpClasses 1996-08-26 05:45:36 +00:00
cdb94b9419 Fixed some commits that were missed dealing with Bryan's recent
patches
1996-08-25 08:43:40 +00:00
27f56dd41e This patch for Versions 1 and 2 corrects the following bug:
In a catalog class that has a "name" type attribute, UPDATEing of an
instance of that class may destroy all of the attributes of that
instance that are stored as or after the "name" attribute.

This is caused by the alignment value of the "name" type being set to
"double" in Class pg_type, but "integer" in Class pg_attribute.
Postgres constructs a tuple using double alignment, but interprets it
using integer alignment.

The fix is to change the alignment to integer in pg_type.

Note that this corrects the problem for new Postgres systems.  Existing
databases already contain the error and it can't easily be repaired because
this very bug prevents updating the class that contains it.

--
Bryan Henderson                                    Phone 408-227-6803
San Jose, California
1996-08-24 20:56:42 +00:00
d390886c1b The patch does several things:
It adds a WITH OIDS option to the copy command, which allows
dumping and loading of oids.

        If a copy command tried to load in an oid that is greater than
its current system max oid, the system max oid is incremented.  No
checking is done to see if other backends are running and have cached
oids.

        pg_dump as its first step when using the -o (oid) option, will
copy in a dummy row to set the system max oid value so as rows are
loaded in, they are certain to be lower than the system oid.

        pg_dump now creates indexes at the end to speed loading


Submitted by:  Bruce Momjian <maillist@candle.pha.pa.us>
1996-08-24 20:54:52 +00:00
83a0ad2623 Here's the fix for the problem that Evan Champion reported today.
This presumably corrects a problem of initdb failing on systems that have
an awk that is sensitive to this.

Submitted by:  bryanh@giraffe.netgate.net (Bryan Henderson)
1996-08-24 20:38:13 +00:00
a2c3905408 Changed genbki.sh block comment patch to avoid triggering an apparent
bug in GNU sed 3.0.
1996-08-22 06:27:25 +00:00
2a3b2fd0ce |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
|
1996-08-21 04:31:14 +00:00
b2692ecaa9 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
1996-08-21 04:28:13 +00:00
22af16a572 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
1996-08-21 04:23:34 +00:00
43818f376f change gawk to awk ... creeped in from a previous patch.. 1996-08-20 23:47:45 +00:00
1add01bb5b 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>
1996-08-20 15:25:29 +00:00
fa11e5e994 i
Improvements to Makefiles to compensate for errors in compiling

From: bryanh@giraffe.netgate.net (Bryan Henderson)
1996-08-20 04:16:20 +00:00
7e7f0c4902 i
Improvements to Makefiles to compensate for errors in compiling

From: bryanh@giraffe.netgate.net (Bryan Henderson)
1996-08-20 04:10:35 +00:00
e326648531 Added a comment aruond the HISTORY_LIB/INC defines 1996-08-20 04:06:12 +00:00
4db04d7779 Furthre cleanup of -lreadline/-lhistory 1996-08-20 04:02:01 +00:00
8288f6afd0 Fix a bug with using READLINE that prevents psql from compiling 1996-08-20 04:00:39 +00:00
359258e1be BSD44_derived required -ltermcap as well... 1996-08-19 19:36:01 +00:00
871f10e028 Change default of HISTORY_LIB so that it is disabled by default 1996-08-19 19:34:48 +00:00
e93ad5392e FreeBSD has libreadline,but not libhistory...
Change Makefile so that it can be commented out in Makefile.global
1996-08-19 19:32:58 +00:00
1054d35a98 Missed an else from Bryan's patch... 1996-08-19 19:28:17 +00:00
394f7990a0 Turn *off* TCL by default 1996-08-19 18:37:09 +00:00
d0f8a6c4e8 Make the doc directory a conditional...only try to "compile" if it
actually exists...
1996-08-19 18:35:17 +00:00
0b62293b71 The err() bug creeped back in again...
Pointed out by:  brianc@saintjoe.edu
1996-08-19 18:04:44 +00:00
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
ce8790bc10 Here's a minor fix that fixes a casting problem:
-Kurt
1996-08-19 13:40:26 +00:00
d3655e69d6 More run-time checking errors:
-Kurt
1996-08-19 13:36:45 +00:00
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
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
817bf55a12 |From: Dan McGuirk <mcguirk@indirect.com>
|
|fixed the spelling of 'nonexistent' in a few places...
|
1996-08-19 01:13:51 +00:00
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
f46246a279 fixed err() -> err_out() pointed out by David Bennett... 1996-08-17 07:50:21 +00:00
7d1402d071 Okay...*last* commit, now to create a release...
README file for regresssion tests from Dr. George
Release_1_0_2
1996-08-02 01:24:00 +00:00
642668c31d Update to expected.input from Dr. George 1996-08-02 01:18:05 +00:00
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
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