Commit Graph

204 Commits

Author SHA1 Message Date
Marc G. Fournier 0748c1f163 A small patch from Andrew for the linux port in v1.09 1996-11-09 10:55:35 +00:00
Marc G. Fournier 1b5e30e615 remove KERBEROS config cruft from Makefile.global
- don't advertise something that jus tdoes'nt work
1996-10-31 20:25:56 +00:00
Marc G. Fournier fa6429d42c Fix the ordering of variables in the memset() call
Pointed out by: wieck@sapserv.debis.de
1996-10-30 21:17:39 +00:00
Marc G. Fournier 025709640c More btree fixes from Massimo Dal Zotto <dz@cs.unitn.it>
Fixes:

I found another bug in btree index.  Looking at the code it seems that NULL
keys are never used to build or scan a btree index (see the explain commands
in the example).  However this is not the case when a null key is retrieved
in an outer loop of a join select and used in an index scan of an inner loop.
This bug causes at least three kinds of problems:

1)  the backend crashes when it tries to compare a text string with a null.

2)  it is not possible to find tuples with null keys in a join.

3)  null is considered equal to 0 when the datum is passed by value, see
    the last query.
1996-10-30 06:06:50 +00:00
Marc G. Fournier 65e5e59f83 Somehow my personal changes got commit'd to the tree, and, therefore,
got into 1.09 :(  Fix this
1996-10-29 19:08:46 +00:00
Marc G. Fournier 0022dea05e Fixed a botched patch...
Pointed out by Andrew...
1996-10-29 19:03:48 +00:00
Marc G. Fournier 20d44ee41f Another patch that was put into 2.x and not into 1.x
From Bruce...
1996-10-28 22:09:39 +00:00
Marc G. Fournier 2f9ee44f2b Accidently commited Makefile.global with PGPORT set to 6543 1996-10-25 19:57:43 +00:00
Marc G. Fournier b8885b22d2 There is a bug in the btree insert code which can cause, under very rare
conditions, the corruption of index data and possibly of shared memory data.

Submitted by:  Massimo Dal Zotto <dz@cs.unitn.it>
1996-10-25 09:53:32 +00:00
Marc G. Fournier 5bc122c9e1 One thing we said before should go into 1.09 is the fix to the master
make file so it doesn't say "Postgres made - ready to install" when you
do a make install or make clean.

Bryan Henderson <bryanh@giraffe.netgate.net>
1996-10-25 09:42:47 +00:00
Marc G. Fournier 60b0605925 Forgot to comment out the USE_READLINE define...fixed now 1996-10-25 09:33:44 +00:00
Marc G. Fournier 457ed3d9c6 Okay D'Arcy...found a purpose to Makefile.custom *grin*:
# If your OS requires these libraries, they should be put in
# Makefile.custom with a line similar to:
# X11_LIB+= -lsocket -lnsl

Actually, those should probably go into the ports/Makefile.inc's, but...
1996-10-25 09:26:56 +00:00
Marc G. Fournier 7c5d7485f0 Set default SRCDIR/POSTGRESDIR to /usr/local/postgres95 1996-10-25 09:24:56 +00:00
Marc G. Fournier f69b84641a Bring in changes so that PORTNAME is UNDEFINED by default, and error/halt
happens if it isn't changed

Disable READLINE by default
1996-10-25 09:23:42 +00:00
Marc G. Fournier 5d90a0037e Fixes: Errors when PQexec() in backend creates temp
relations and transaction is aborted

Submitted by: wieck@sapserv.debis.de (Jan Wieck)
1996-10-24 07:38:22 +00:00
Marc G. Fournier ee0ef186ac Fixes: Growing backend when using nested function calls
Submitted by: wieck@sapserv.debis.de
1996-10-24 07:33:52 +00:00
Marc G. Fournier 352e2ae2ab Added in prototype for: extern void setMaxOid(FILE *fout);
The patch got applied to 2.x, not 1.x :(
1996-10-24 06:51:19 +00:00
Marc G. Fournier 82a4b0f225 Fixes:
It's bug in nodeAgg.c on lines 241, 242:

                null_array = malloc(nagg);
                for (i=0;i<nagg;i++)
                    null_array[i] = 'n';
                oneTuple = heap_formtuple(tupType, tupValue, null_array);

- your query has not only aggregates but also 'group by-ed' fields and so
null_array should contain tupType->natts elements (tupType->natts > nagg in
your case).

Patch follows and it's very simple.

VAdim
1996-10-24 06:33:31 +00:00
Marc G. Fournier b5c7fe5518 The second patch adds aliases for "ISNULL" to "IS NULL" and likewise for
"NOTNULL" to "IS NOT NULL".  I have not removed the postgres specific
ISNULL and NOTNULL.  I noticed this on the TODO list, and figured it would
be easy to remove.

The full semantics are:
        [ expression IS NULL ]
        [ expression IS NOT NULL ]

Submitted by: Jason Wright <jason@oozoo.vnet.net>
1996-10-11 03:28:14 +00:00
Marc G. Fournier 2cc3c09e45 This change should have no practical effect but it is the more
correct way to do this.  Theoretically you could have a NULL
pointer that isn't represented internally as all 0 bits.  This
guarantees that it convert correctly.

Submitted by: darcy@druid.com (D'Arcy J.M. Cain)
1996-10-11 03:26:18 +00:00
Marc G. Fournier 73010f5044 I have written some patches to the postgres lock manager which allow the
use of long term cooperative locks managed by the user applications.

Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1996-10-11 03:20:52 +00:00
Marc G. Fournier 3208b4d7d8 There is a bug in aclitemout which causes a notice to be sent to the client
while the backend is trying to pfree a string not allocated with palloc.

Submitted by:  Massimo Dal Zotto <dz@cs.unitn.it>
1996-10-11 03:15:38 +00:00
Marc G. Fournier ba30435f34 Comment out EUROPEAN_DATES by default. v2.0 moves it into include/config.h 1996-10-11 03:06:28 +00:00
Marc G. Fournier 4a14945699 Oops...thought we fixed the bug with the -I ../.. problem :( 1996-10-09 20:33:53 +00:00
Marc G. Fournier df738547d7 fixed it here too... 1996-10-07 07:19:38 +00:00
Marc G. Fournier bf3473c468 Oops, wrong message with the other patch...this was the patch for the other
comment, so here is the comment for the other patch *grin*

> > You are right.  I checked the gramar and saw the ability to use the
> > parameter.  I looked at the manual pages, and saw no reference to it.  I
> > tried running it, and found vacuum does nothing when you give it a table
> > name.
> >
> > I checked a debug version of postgres, and the table name is passed to
> > vacuum() in the variable (char *vacrel).  The problem is that the vacuum
> > spans transactions, and the vacrel name gets changed to '<vacuum>',
> > which is the name of the portal that gets created in
> > vacuum.c::_vc_vacuum().  vacuum.c::_vc_init() does a
> > CommitTransactionCommand() which frees the memory allocated to vacrel.
> >
> > Should I change vacuum.c to copy the relation name to a local string
> > variable of vacuum(), or do you recommend we allocate the table name in
> > a different fashion?  You are the man who knows the most about this.
>
> static NameData VacRel;

Done.  Attached is the patch.  I have already applied it to the 2.0
tree. (Marc!)

I tested it and it works.  I also applied documentation patches to go
with it.

So now vacuum can be run for only one table if you wish.

Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
1996-10-04 20:38:49 +00:00
Marc G. Fournier cbb3edc7e5 > - it excludes system-relation too (relkind == 's'). (Note: Vacuum updates
pg_class
> by overwriting existing tuple for vacrel, so there are no many reasons to
vacuum pg_class).
>
> It can be done somewhere in _vc_getrels - near to checks against archive
relations
> and relations on the write-once storage managers...
>
> Excuse me - I forgot to say about this.
>

Attached is the recently posted fix for this.  Thanks.

Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
1996-10-04 20:37:09 +00:00
Marc G. Fournier 93c7dcffa2 Here the fix for the first assertion failure I had which killed
my postmaster 1.07.
It's really simple, the loop dealing with all sockets
can't handle more than one ready socket :-)
A simple logic error dealing with lists.
OR IS THERE ANY REASON FOR SETTING curr TO 0?

Submitted by:  Carsten Heyl <Heyl@nads.de>
1996-10-04 20:33:18 +00:00
Marc G. Fournier 9b1e589ca8 Added spaces to end of QUERY lines so that createuser actually works... 1996-10-04 20:28:57 +00:00
Marc G. Fournier 1aa15e6eb3 Quick fix required to fix SED script in postgres.shell.mk
V1.07
1996-10-04 20:25:31 +00:00
Marc G. Fournier 729f10ae3f change a reference to stdout to point to fout instead...
submitted by: Carsten Heyl <heyl@nads.de>
1996-10-02 21:39:29 +00:00
Marc G. Fournier cae8b908a8 From: "Kurt J. Lidl" <lidl@va.pubnix.com>
To: pg95-dev@ki.net
Subject: [PG95-DEV] array overrun in postmaster.c
1996-10-02 21:36:32 +00:00
Marc G. Fournier de635e1607 Added a fix for the dgux port
Pointed out by:  "Brian E. Gallew" <geek+@cmu.edu>
1996-10-02 20:43:25 +00:00
Marc G. Fournier 1530e33b67 *** src/backend/storage/file/fd.c.orig Thu Sep 12 17:17:21 1996
--- src/backend/storage/file/fd.c       Thu Sep 12 17:23:38 1996
***************
*** 262,268 ****
      Delete(file);

      /* save the seek position */
!     fileP->seekPos = lseek(fileP->fd, 0L, SEEK_CUR);
      Assert( fileP->seekPos != -1);

      /* if we have written to the file, sync it */
--- 262,268 ----
      Delete(file);

      /* save the seek position */
!     fileP->seekPos = (long) lseek(fileP->fd, 0L, SEEK_CUR);
      Assert( fileP->seekPos != -1);

      /* if we have written to the file, sync it */



Submitted by: Randy Terbush <randy@zyzzyva.com>
1996-09-22 01:31:29 +00:00
Marc G. Fournier af4f86adda Had EUROPEAN_DATES turned on by default
Pointed out by Bruce
1996-09-21 19:11:22 +00:00
Marc G. Fournier 2857a3899e More declaration mis-match fixes... 1996-09-21 08:19:32 +00:00
Marc G. Fournier 52f9fcd737 Now match the declaration in fe-auth.c to the one in fe-auth.h :) 1996-09-21 08:16:31 +00:00
Marc G. Fournier 74025d0fef fix a conflicting declaration problem with fe_setauthsvc()... 1996-09-21 08:15:00 +00:00
Marc G. Fournier 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
Marc G. Fournier cd2f4476f0 POSTPORT should be 5432, not 6543 1996-09-21 06:20:19 +00:00
Marc G. Fournier 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
Marc G. Fournier 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
Marc G. Fournier 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
Marc G. Fournier 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
Marc G. Fournier 7f34bdd31e More sync ups... 1996-08-28 01:13:37 +00:00
Marc G. Fournier 2d6dec8391 Another mis-sync... 1996-08-27 17:37:27 +00:00
Marc G. Fournier d9cc8326df Somehow, we got out of sync here
Pointed out by Bryan
1996-08-27 17:33:33 +00:00
Marc G. Fournier 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
Marc G. Fournier 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
Marc G. Fournier 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