]> granicus.if.org Git - postgresql/log
postgresql
27 years agoClean up Makefile(s)
Marc G. Fournier [Sun, 3 Nov 1996 05:08:01 +0000 (05:08 +0000)]
Clean up Makefile(s)

Add #include "postgres.h" as required

Remove #include "c.h" *and* "utils/elog.h" as applicable

27 years agoClean up Makefile
Marc G. Fournier [Sun, 3 Nov 1996 04:57:03 +0000 (04:57 +0000)]
Clean up Makefile

Add #include "postgres.h" as required

Remove #include "utils/elog.h"

27 years agoClean up Makefile, add #postgres.h as required
Marc G. Fournier [Sun, 3 Nov 1996 04:51:51 +0000 (04:51 +0000)]
Clean up Makefile, add #postgres.h as required

27 years agoClean up Makefile, make sure that postmaster.c compiles
Marc G. Fournier [Sun, 3 Nov 1996 04:48:27 +0000 (04:48 +0000)]
Clean up Makefile, make sure that postmaster.c compiles

27 years agoContinuation of make file simplification; deal with header file shuffle.
Bryan Henderson [Sat, 2 Nov 1996 09:54:44 +0000 (09:54 +0000)]
Continuation of make file simplification; deal with header file shuffle.

27 years agoContinuation of make file simplification; handle libpq.a dependancy.
Bryan Henderson [Sat, 2 Nov 1996 09:53:15 +0000 (09:53 +0000)]
Continuation of make file simplification; handle libpq.a dependancy.

27 years agoAdd complete setting of AROPT
Bryan Henderson [Sat, 2 Nov 1996 09:49:57 +0000 (09:49 +0000)]
Add complete setting of AROPT

27 years agoConvenience routine for checking superuser status.
Bryan Henderson [Sat, 2 Nov 1996 02:06:47 +0000 (02:06 +0000)]
Convenience routine for checking superuser status.

27 years agoAdd misc subdirectory.
Bryan Henderson [Sat, 2 Nov 1996 02:03:50 +0000 (02:03 +0000)]
Add misc subdirectory.

27 years agoFix bug in checking permissions on table being COPY'd.
Bryan Henderson [Sat, 2 Nov 1996 02:03:13 +0000 (02:03 +0000)]
Fix bug in checking permissions on table being COPY'd.

27 years agoAllow only superuser to do backend copy.
Bryan Henderson [Sat, 2 Nov 1996 02:01:48 +0000 (02:01 +0000)]
Allow only superuser to do backend copy.

27 years agoComment changes.
Bruce Momjian [Fri, 1 Nov 1996 21:04:48 +0000 (21:04 +0000)]
Comment changes.

27 years agoMore intelligent #include cleanups, as pointed out by Bryan...
Marc G. Fournier [Fri, 1 Nov 1996 09:41:41 +0000 (09:41 +0000)]
More intelligent #include cleanups, as pointed out by Bryan...

Compiled with -Wall -Werror

27 years agoOkay, following Bryan's (and others) suggestions...cleaning up the
Marc G. Fournier [Fri, 1 Nov 1996 09:31:17 +0000 (09:31 +0000)]
Okay, following Bryan's (and others) suggestions...cleaning up the
include files properly...yet, slowly...

27 years agoInclude dependencies based on tupdesc.h, as:
Marc G. Fournier [Fri, 1 Nov 1996 09:22:37 +0000 (09:22 +0000)]
Include dependencies based on tupdesc.h, as:

access/tupdesc.h
catalog/pg_attribute.h
nodes/pg_list.h
nodes/nodes.h
access/attnum.h

27 years agoInclude file cleanup:
Marc G. Fournier [Fri, 1 Nov 1996 09:19:11 +0000 (09:19 +0000)]
Include file cleanup:

Based on include files require by htup.h, as:

access/htup.h
storage/itemptr.h
storage/block.h
storage/off.h
utils/nabstime.h
<time.h>

27 years agoOkay, so I was going backwards on my include cleanup...
Marc G. Fournier [Fri, 1 Nov 1996 09:12:18 +0000 (09:12 +0000)]
Okay, so I was going backwards on my include cleanup...

Pointed out by Bryan (in a subtle way *grin*)

27 years agoMore chanes for bsdi_2_1 removal
Bruce Momjian [Fri, 1 Nov 1996 03:36:16 +0000 (03:36 +0000)]
More chanes for bsdi_2_1 removal

27 years agoDecoupled ASSERT and DEBUG options.
Bruce Momjian [Fri, 1 Nov 1996 02:32:16 +0000 (02:32 +0000)]
Decoupled ASSERT and DEBUG options.

27 years agoFIx for bsdi.
Bruce Momjian [Fri, 1 Nov 1996 02:21:15 +0000 (02:21 +0000)]
FIx for bsdi.

27 years agoRemoval of bsdi_2_1 port.
Bruce Momjian [Fri, 1 Nov 1996 01:47:23 +0000 (01:47 +0000)]
Removal of bsdi_2_1 port.

27 years agotypo fix on include file.
Bruce Momjian [Thu, 31 Oct 1996 18:33:09 +0000 (18:33 +0000)]
typo fix on include file.

27 years agoFix prototype.
Bruce Momjian [Thu, 31 Oct 1996 18:27:54 +0000 (18:27 +0000)]
Fix prototype.

27 years agoFix for gmake clean.
Bruce Momjian [Thu, 31 Oct 1996 17:27:58 +0000 (17:27 +0000)]
Fix for gmake clean.

27 years agoAdd #include "postgres.h"
Marc G. Fournier [Thu, 31 Oct 1996 11:09:44 +0000 (11:09 +0000)]
Add #include "postgres.h"

27 years agoCleanup Makefiles
Marc G. Fournier [Thu, 31 Oct 1996 10:59:42 +0000 (10:59 +0000)]
Cleanup Makefiles

Add #include "postgres.h"
and
    #include <sys/types.h>

27 years agoMore Makefile cleanups
Marc G. Fournier [Thu, 31 Oct 1996 10:42:56 +0000 (10:42 +0000)]
More Makefile cleanups

Add #include "postgres.h" as required

27 years agoclean up makefile
Marc G. Fournier [Thu, 31 Oct 1996 10:37:53 +0000 (10:37 +0000)]
clean up makefile

add #include "postgres.h"

27 years agoClean out makefile
Marc G. Fournier [Thu, 31 Oct 1996 10:26:33 +0000 (10:26 +0000)]
Clean out makefile

add #include "postgres.h"

27 years agomore removal of PORTNAME_*
Marc G. Fournier [Thu, 31 Oct 1996 10:23:28 +0000 (10:23 +0000)]
more removal of PORTNAME_*

27 years agomore removals of PORTNAME_*
Marc G. Fournier [Thu, 31 Oct 1996 10:20:09 +0000 (10:20 +0000)]
more removals of PORTNAME_*

27 years agoremove use of PORTNAME_*
Marc G. Fournier [Thu, 31 Oct 1996 10:17:09 +0000 (10:17 +0000)]
remove use of PORTNAME_*

27 years agoadd #include "postgres.h", as required by all .c files
Marc G. Fournier [Thu, 31 Oct 1996 10:12:26 +0000 (10:12 +0000)]
add #include "postgres.h", as required by all .c files

27 years agoremove:
Marc G. Fournier [Thu, 31 Oct 1996 09:51:30 +0000 (09:51 +0000)]
remove:
#include "postgres.h"
#include "c.h"

27 years agoRequire superuser privilege to create C function.
Bryan Henderson [Thu, 31 Oct 1996 09:08:10 +0000 (09:08 +0000)]
Require superuser privilege to create C function.

27 years agoMore of the same...clean Makefile, add include files
Marc G. Fournier [Thu, 31 Oct 1996 08:52:54 +0000 (08:52 +0000)]
More of the same...clean Makefile, add include files

27 years agoSame clean up of Makefile, and addition of include files
Marc G. Fournier [Thu, 31 Oct 1996 08:32:23 +0000 (08:32 +0000)]
Same clean up of Makefile, and addition of include files

27 years agoCleaned out -I../.. -I../../include from Makefile
Marc G. Fournier [Thu, 31 Oct 1996 08:28:53 +0000 (08:28 +0000)]
Cleaned out -I../.. -I../../include from Makefile

Added missing include files

27 years agoRemove -I../.. and -I../../include from Makefile
Marc G. Fournier [Thu, 31 Oct 1996 08:24:47 +0000 (08:24 +0000)]
Remove -I../.. and -I../../include from Makefile

Add some missing include files

27 years agoAdd a couple of missing includes
Marc G. Fournier [Thu, 31 Oct 1996 08:09:47 +0000 (08:09 +0000)]
Add a couple of missing includes

27 years agoAdded misc include files
Marc G. Fournier [Thu, 31 Oct 1996 07:48:38 +0000 (07:48 +0000)]
Added misc include files

27 years ago.h files shouldn't include .h files, .c files should contain .h files...
Marc G. Fournier [Thu, 31 Oct 1996 07:37:57 +0000 (07:37 +0000)]
.h files shouldn't include .h files, .c files should contain .h files...

remove postgres.h from fmgr.h creation

27 years agoEven compile generated .h files should be in ${SRCDIR}/include...
Marc G. Fournier [Thu, 31 Oct 1996 07:25:15 +0000 (07:25 +0000)]
Even compile generated .h files should be in ${SRCDIR}/include...

27 years agoWell, normally there wouldn't be anything in -I../.., and in a minute, there
Marc G. Fournier [Thu, 31 Oct 1996 07:22:07 +0000 (07:22 +0000)]
Well, normally there wouldn't be anything in -I../.., and in a minute, there
won't be...

27 years agoAdd these files to ${SRCDIR}/include
Marc G. Fournier [Thu, 31 Oct 1996 07:10:14 +0000 (07:10 +0000)]
Add these files to ${SRCDIR}/include

27 years agoMove these files to ${SRCDIR}/include
Marc G. Fournier [Thu, 31 Oct 1996 07:09:33 +0000 (07:09 +0000)]
Move these files to ${SRCDIR}/include

27 years agoThere is no -I../.. include files...
Marc G. Fournier [Thu, 31 Oct 1996 07:04:50 +0000 (07:04 +0000)]
There is no -I../.. include files...

27 years agoUSE of PORTNAME_* should be discouraged wherever possible. The code
Marc G. Fournier [Thu, 31 Oct 1996 06:55:15 +0000 (06:55 +0000)]
USE of PORTNAME_* should be discouraged wherever possible.  The code
*should* be intelligent enough that:

#if defined(__FreeBSD__) works, where __FreeBSD__ is actually defined
by the compiler itself.

Makefile.global used to have -DPORTNAME_<port> -D<port> as part of the flags
for gcc while all occurances of PORTNAME_<port> slowly get removed from
the source tree...

27 years agoInstalled new FAQ's after I deleted them accidentally while
Bruce Momjian [Thu, 31 Oct 1996 06:13:25 +0000 (06:13 +0000)]
Installed new FAQ's after I deleted them accidentally while
removing duplicate names.

27 years agoRemoved duplicate files.
Bruce Momjian [Thu, 31 Oct 1996 05:59:13 +0000 (05:59 +0000)]
Removed duplicate files.

27 years agoChanged include path.
Bruce Momjian [Thu, 31 Oct 1996 05:58:32 +0000 (05:58 +0000)]
Changed include path.

27 years agoAdded needed include file.
Bruce Momjian [Thu, 31 Oct 1996 05:58:01 +0000 (05:58 +0000)]
Added needed include file.

27 years agoMissing from parser patch.
Bruce Momjian [Thu, 31 Oct 1996 05:57:23 +0000 (05:57 +0000)]
Missing from parser patch.
Added needed include file.

27 years agochanged define(port) to define(PORTNAME_port)
Bruce Momjian [Thu, 31 Oct 1996 05:56:27 +0000 (05:56 +0000)]
changed define(port) to define(PORTNAME_port)
Added needed include file.

27 years agoChanged make to gmake.
Bruce Momjian [Thu, 31 Oct 1996 05:55:24 +0000 (05:55 +0000)]
Changed make to gmake.
Added needed include file.

27 years agoAdded prototypes missing from parser patch.
Bruce Momjian [Thu, 31 Oct 1996 05:54:27 +0000 (05:54 +0000)]
Added prototypes missing from parser patch.
Added needed include file.

27 years agoRemoved false and changed to a commented true.
Bruce Momjian [Thu, 31 Oct 1996 05:53:10 +0000 (05:53 +0000)]
Removed false and changed to a commented true.

27 years agoFix memset() call, variables being passed in wrong order.
Marc G. Fournier [Wed, 30 Oct 1996 21:18:22 +0000 (21:18 +0000)]
Fix memset() call, variables being passed in wrong order.

Pointed out by: wieck@sapserv.debis.de

27 years agoFixes: Incorrect syntax for copy command
Marc G. Fournier [Wed, 30 Oct 1996 06:19:53 +0000 (06:19 +0000)]
Fixes: Incorrect syntax for copy command
By: Erich Stamberger <eberger@gewi.kfunigraz.ac.at>

27 years agoChanges to libpgtcl submitted by: wieck@sapserv.debis.de (Jan Wieck)
Marc G. Fournier [Wed, 30 Oct 1996 06:18:42 +0000 (06:18 +0000)]
Changes to libpgtcl submitted by: wieck@sapserv.debis.de (Jan Wieck)

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.

27 years agocommit a newer IRIX FAQ from Andrew
Marc G. Fournier [Wed, 30 Oct 1996 06:14:07 +0000 (06:14 +0000)]
commit a newer IRIX FAQ from Andrew

27 years agoCommit a newer fact for 1.09 from Andrew
Marc G. Fournier [Wed, 30 Oct 1996 06:13:36 +0000 (06:13 +0000)]
Commit a newer fact for 1.09 from Andrew

27 years agoFixes:
Marc G. Fournier [Wed, 30 Oct 1996 06:08:10 +0000 (06:08 +0000)]
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.

Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>

27 years agoFix up INSTALL file
Marc G. Fournier [Wed, 30 Oct 1996 06:01:55 +0000 (06:01 +0000)]
Fix up INSTALL file

From Andrew

27 years agoParser Overhaul
Bruce Momjian [Wed, 30 Oct 1996 02:02:41 +0000 (02:02 +0000)]
Parser Overhaul

27 years agoFix small syntax error.
Bryan Henderson [Wed, 30 Oct 1996 00:36:59 +0000 (00:36 +0000)]
Fix small syntax error.

27 years agoFix sigaction again to try for portability.
Bryan Henderson [Tue, 29 Oct 1996 21:53:48 +0000 (21:53 +0000)]
Fix sigaction again to try for portability.

27 years agoRemove another snprintf() for Solaris.
Bryan Henderson [Tue, 29 Oct 1996 21:51:13 +0000 (21:51 +0000)]
Remove another snprintf() for Solaris.

27 years agoSlight changes to INSTALL to point ppl at the Linux/IRIX specific
Marc G. Fournier [Mon, 28 Oct 1996 22:12:42 +0000 (22:12 +0000)]
Slight changes to INSTALL to point ppl at the Linux/IRIX specific
FAQs

27 years agoAdd in Andrew's FAQs
Marc G. Fournier [Mon, 28 Oct 1996 22:11:47 +0000 (22:11 +0000)]
Add in Andrew's FAQs

27 years agoUse strncpy() and local buffers instead of snprintf(), since not everyone
Bryan Henderson [Mon, 28 Oct 1996 09:05:29 +0000 (09:05 +0000)]
Use strncpy() and local buffers instead of snprintf(), since not everyone
has snprintf().

27 years agoMake a local isblank() function, since not all standard C libraries have it.
Bryan Henderson [Mon, 28 Oct 1996 09:03:50 +0000 (09:03 +0000)]
Make a local isblank() function, since not all standard C libraries have it.
For sparc_solaris, add inet_aton prototype, since it isn't in the header
files included for the standard C library functions.

27 years agoAdd our own copy of inet_aton() for sparc_solaris, which doesn't have it in
Bryan Henderson [Mon, 28 Oct 1996 09:00:54 +0000 (09:00 +0000)]
Add our own copy of inet_aton() for sparc_solaris, which doesn't have it in
the standard C library.

27 years agoSimplify make files, add full dependencies.
Bryan Henderson [Sun, 27 Oct 1996 09:55:05 +0000 (09:55 +0000)]
Simplify make files, add full dependencies.

27 years agoCorrect #if statement so it compiles on Solaris. Thanks Keith Parks.
Bryan Henderson [Sat, 26 Oct 1996 05:03:24 +0000 (05:03 +0000)]
Correct #if statement so it compiles on Solaris.  Thanks Keith Parks.

27 years agoD'Arcy's cleanups
Marc G. Fournier [Sat, 26 Oct 1996 04:15:05 +0000 (04:15 +0000)]
D'Arcy's cleanups

27 years agoMake sure the btree patch gets into 2.0 as well...
Marc G. Fournier [Fri, 25 Oct 1996 09:55:36 +0000 (09:55 +0000)]
Make sure the btree patch gets into 2.0 as well...

Still submitted by:  Massimo Dal Zotto <dz@cs.unitn.it>

27 years agoAdd CFLAGS+=-DPOSTPORT=... so we can take it out of the global CFLAGS.
Bryan Henderson [Fri, 25 Oct 1996 09:22:30 +0000 (09:22 +0000)]
Add CFLAGS+=-DPOSTPORT=... so we can take it out of the global CFLAGS.

27 years agoUse EUROPEAN_DATES instead of EUROPEAN_STYLE
Bryan Henderson [Fri, 25 Oct 1996 06:02:52 +0000 (06:02 +0000)]
Use EUROPEAN_DATES instead of EUROPEAN_STYLE

27 years agoE Use EUROPEAN_DATES from config.h instead of -D option
Bryan Henderson [Fri, 25 Oct 1996 06:00:49 +0000 (06:00 +0000)]
E Use EUROPEAN_DATES from config.h instead of -D option

27 years agoFixes: Growing backend when using nested function calls
Marc G. Fournier [Thu, 24 Oct 1996 07:59:46 +0000 (07:59 +0000)]
Fixes: Growing backend when using nested function calls
Submitted by: wieck@sapserv.debis.de (Jan Wieck)

27 years agoFixes: Errors when PQexec() in backend creates temp
Marc G. Fournier [Thu, 24 Oct 1996 07:55:54 +0000 (07:55 +0000)]
Fixes: Errors when PQexec() in backend creates temp
              relations and transaction is aborted

Submitted by: wieck@sapserv.debis.de (Jan Wieck)

27 years agoFixes:
Marc G. Fournier [Thu, 24 Oct 1996 06:32:01 +0000 (06:32 +0000)]
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

27 years agoTake out the PERFECT_MMGR #ifdefs:
Marc G. Fournier [Thu, 24 Oct 1996 06:30:40 +0000 (06:30 +0000)]
Take out the PERFECT_MMGR #ifdefs:

My guess is that the thing had bugs, and the pfree was commented out.
The thing is probabally free'ed anyway at the end, so it was not a bad
thing.

If it does cause a bug, it will generate an error when hit, so I say
unless someone else knows, let's remove it and run the regression test.

-Bruce

27 years agoBruce...does this fix it once and for all? *grin*
Marc G. Fournier [Thu, 24 Oct 1996 06:25:34 +0000 (06:25 +0000)]
Bruce...does this fix it once and for all? *grin*

27 years agoMajor code cleanups from D'arcy (-Wall -Werror)
Marc G. Fournier [Wed, 23 Oct 1996 07:42:13 +0000 (07:42 +0000)]
Major code cleanups from D'arcy (-Wall -Werror)

27 years ago|I have moved things around so that things happen in the following order:
Marc G. Fournier [Wed, 23 Oct 1996 07:33:04 +0000 (07:33 +0000)]
|I have moved things around so that things happen in the following order:
|
|  1. Set default variables
|  2. Include Makefile.custom to override defaults
|  3. Set CFLAGS, etc. with variables
|
|This fixes the problem of Makefile.custom changes not taking effect.

Submitted by: D'Arcy Cain

27 years agoUpdate "planner" directory to "optimizer" in include paths in this dead code.
Bryan Henderson [Wed, 23 Oct 1996 07:14:43 +0000 (07:14 +0000)]
Update "planner" directory to "optimizer" in include paths in this dead code.

27 years agoCosmetic changes to ordering of #include files
Marc G. Fournier [Mon, 21 Oct 1996 11:49:41 +0000 (11:49 +0000)]
Cosmetic changes to ordering of #include files

27 years ago-Wall'd
Marc G. Fournier [Mon, 21 Oct 1996 09:37:26 +0000 (09:37 +0000)]
-Wall'd

27 years ago-Wall'd
Marc G. Fournier [Mon, 21 Oct 1996 08:31:23 +0000 (08:31 +0000)]
-Wall'd

27 years ago-Wall'd ... I missed a subdir under access :(
Marc G. Fournier [Mon, 21 Oct 1996 07:38:20 +0000 (07:38 +0000)]
-Wall'd ... I missed a subdir under access :(

27 years agoMake line 159:bp = NULL, to quiet compiler
Marc G. Fournier [Mon, 21 Oct 1996 07:18:08 +0000 (07:18 +0000)]
Make line 159:bp = NULL, to quiet compiler

Suggested by: Randy Terbush <randy@zyzzyva.com>

27 years ago-Wall'd
Marc G. Fournier [Mon, 21 Oct 1996 07:15:18 +0000 (07:15 +0000)]
-Wall'd

That finishes access/*

27 years agoForce user to set PORTNAME. Remove NAMEDATALEN from CFLAGS (don't need it
Bryan Henderson [Mon, 21 Oct 1996 06:56:57 +0000 (06:56 +0000)]
Force user to set PORTNAME.  Remove NAMEDATALEN from CFLAGS (don't need it
there because it's in config.h, which is cleaner).

27 years ago-Wall'd
Marc G. Fournier [Mon, 21 Oct 1996 05:59:49 +0000 (05:59 +0000)]
-Wall'd

27 years ago-Wall'd
Marc G. Fournier [Mon, 21 Oct 1996 05:45:21 +0000 (05:45 +0000)]
-Wall'd

27 years ago-Wall Cleanup of gist subdirectory
Marc G. Fournier [Mon, 21 Oct 1996 05:14:02 +0000 (05:14 +0000)]
-Wall Cleanup of gist subdirectory

27 years ago-Wall cleanup of gist subdirectory:
Marc G. Fournier [Mon, 21 Oct 1996 05:11:00 +0000 (05:11 +0000)]
-Wall cleanup of gist subdirectory:
- cleaned out unused variables
- added missing prototype headers

One outstanding -Werror failure:

/home/staff/scrappy/postgres/2.0/cvs/postgres95/src/backend/access/gist/giststra
t.c:117: warning: missing braces around initializer for `GISTEvaluationData.expr
ession'

27 years agoDefine prototypes from giststrat.c required in gistscan.c
Marc G. Fournier [Mon, 21 Oct 1996 05:05:42 +0000 (05:05 +0000)]
Define prototypes from giststrat.c required in gistscan.c