Marc G. Fournier
ff36ebc922
More cleans of the inter-dependencies in the #include files
1996-11-03 12:13:35 +00:00
Marc G. Fournier
71cd646a34
More include file cleanups
1996-11-03 12:11:19 +00:00
Marc G. Fournier
dd71c36933
That pretty much totally cleans up the includes files here.
1996-11-03 10:57:24 +00:00
Bryan Henderson
5a58dabbbc
Include Makefile.global so fmgrtab.c compiles properly. Thanks Keith Parks.
1996-11-03 09:28:31 +00:00
Bryan Henderson
8ac872b26d
Fix bogus format in two error messages.
1996-11-03 09:24:04 +00:00
Marc G. Fournier
66a518735f
Finish cleaning up -I lines
1996-11-03 09:07:03 +00:00
Bryan Henderson
a7a0b3ba30
Keep the generated .h files in the local directory, like other object files,
...
rather than in src/include with normal header files. Necessary to make
dependancies work out so they don't keep getting rebuilt for no reason.
1996-11-03 09:05:30 +00:00
Bryan Henderson
a505db6f33
Create TAGS file for emacs. Like MAKE_CTAGS for vi.
1996-11-03 09:03:30 +00:00
Marc G. Fournier
0c960e7fc0
More include file cleanups
1996-11-03 08:17:38 +00:00
Marc G. Fournier
4bdf308bdf
shared build fails, but the rest compiles...formatting error in the
...
cc -shared, I believe...
1996-11-03 07:14:32 +00:00
Marc G. Fournier
aed384f12d
Quiet a compiler warning (see line 729+, retvalue)
1996-11-03 07:00:57 +00:00
Marc G. Fournier
dd5b78f1c1
Remove 'unused variable `open_errno''
1996-11-03 06:56:52 +00:00
Marc G. Fournier
c9002ecb21
Produce a clean compile of backend...
1996-11-03 06:54:38 +00:00
Marc G. Fournier
3cf53c1d8a
Change default install directories to /usr/local/pgsql
...
Add CFLAGS+= -Wall -Werror (should only affect developers, not users)
1996-11-03 06:54:10 +00:00
Marc G. Fournier
6fac4602ae
Clean up Makefile(s)
...
Add #include "postgres.h" as required
Remove #include "c.h" *and* "utils/elog.h" as applicable
1996-11-03 05:08:01 +00:00
Marc G. Fournier
66637f4a2f
Clean up Makefile
...
Add #include "postgres.h" as required
Remove #include "utils/elog.h"
1996-11-03 04:57:03 +00:00
Marc G. Fournier
c4edfb4667
Clean up Makefile, add #postgres.h as required
1996-11-03 04:51:51 +00:00
Marc G. Fournier
daa93cf5c5
Clean up Makefile, make sure that postmaster.c compiles
1996-11-03 04:48:27 +00:00
Bryan Henderson
b216c1eac6
Continuation of make file simplification; deal with header file shuffle.
1996-11-02 09:54:44 +00:00
Bryan Henderson
31e8156fad
Continuation of make file simplification; handle libpq.a dependancy.
1996-11-02 09:53:15 +00:00
Bryan Henderson
c5c8983ef7
Add complete setting of AROPT
1996-11-02 09:49:57 +00:00
Bryan Henderson
763adb5235
Convenience routine for checking superuser status.
1996-11-02 02:06:47 +00:00
Bryan Henderson
675740a8f3
Add misc subdirectory.
1996-11-02 02:03:50 +00:00
Bryan Henderson
fa608ad2a6
Fix bug in checking permissions on table being COPY'd.
1996-11-02 02:03:13 +00:00
Bryan Henderson
d27c28fdc0
Allow only superuser to do backend copy.
1996-11-02 02:01:48 +00:00
Bruce Momjian
c9b05e55ac
Comment changes.
1996-11-01 21:04:48 +00:00
Marc G. Fournier
a95674269f
More intelligent #include cleanups, as pointed out by Bryan...
...
Compiled with -Wall -Werror
1996-11-01 09:41:41 +00:00
Marc G. Fournier
3516eda61c
Okay, following Bryan's (and others) suggestions...cleaning up the
...
include files properly...yet, slowly...
1996-11-01 09:31:17 +00:00
Marc G. Fournier
f44acab12c
Include dependencies based on tupdesc.h, as:
...
access/tupdesc.h
catalog/pg_attribute.h
nodes/pg_list.h
nodes/nodes.h
access/attnum.h
1996-11-01 09:22:37 +00:00
Marc G. Fournier
6d4c760eb5
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>
1996-11-01 09:19:11 +00:00
Marc G. Fournier
ea94d639d0
Okay, so I was going backwards on my include cleanup...
...
Pointed out by Bryan (in a subtle way *grin*)
1996-11-01 09:12:18 +00:00
Bruce Momjian
dd10d0de23
More chanes for bsdi_2_1 removal
1996-11-01 03:36:16 +00:00
Bruce Momjian
fba75d0fdc
Decoupled ASSERT and DEBUG options.
1996-11-01 02:32:16 +00:00
Bruce Momjian
c3b9c520be
FIx for bsdi.
1996-11-01 02:21:15 +00:00
Bruce Momjian
3a4c2888a1
Removal of bsdi_2_1 port.
1996-11-01 01:47:23 +00:00
Bruce Momjian
727c840754
typo fix on include file.
1996-10-31 18:33:09 +00:00
Bruce Momjian
69dfa71bc3
Fix prototype.
1996-10-31 18:27:54 +00:00
Bruce Momjian
3ce9ccff7c
Fix for gmake clean.
1996-10-31 17:27:58 +00:00
Marc G. Fournier
b17c49e95d
Add #include "postgres.h"
1996-10-31 11:09:44 +00:00
Marc G. Fournier
76294e1d38
Cleanup Makefiles
...
Add #include "postgres.h"
and
#include <sys/types.h>
1996-10-31 10:59:42 +00:00
Marc G. Fournier
eb501f1cd3
More Makefile cleanups
...
Add #include "postgres.h" as required
1996-10-31 10:42:56 +00:00
Marc G. Fournier
ae1d931e88
clean up makefile
...
add #include "postgres.h"
1996-10-31 10:37:53 +00:00
Marc G. Fournier
ffaff3dcd4
Clean out makefile
...
add #include "postgres.h"
1996-10-31 10:26:33 +00:00
Marc G. Fournier
df6a9e633c
more removal of PORTNAME_*
1996-10-31 10:23:28 +00:00
Marc G. Fournier
4df1a41478
more removals of PORTNAME_*
1996-10-31 10:20:09 +00:00
Marc G. Fournier
bdd07411b4
remove use of PORTNAME_*
1996-10-31 10:17:09 +00:00
Marc G. Fournier
3df33180a1
add #include "postgres.h", as required by all .c files
1996-10-31 10:12:26 +00:00
Marc G. Fournier
99412aef23
remove:
...
#include "postgres.h"
#include "c.h"
1996-10-31 09:51:30 +00:00
Bryan Henderson
3341750769
Require superuser privilege to create C function.
1996-10-31 09:08:10 +00:00
Marc G. Fournier
b13f5c25e2
More of the same...clean Makefile, add include files
1996-10-31 08:52:54 +00:00
Marc G. Fournier
ab2444032a
Same clean up of Makefile, and addition of include files
1996-10-31 08:32:23 +00:00
Marc G. Fournier
f578f8fb68
Cleaned out -I../.. -I../../include from Makefile
...
Added missing include files
1996-10-31 08:28:53 +00:00
Marc G. Fournier
367ade186f
Remove -I../.. and -I../../include from Makefile
...
Add some missing include files
1996-10-31 08:24:47 +00:00
Marc G. Fournier
ea04818002
Add a couple of missing includes
1996-10-31 08:09:47 +00:00
Marc G. Fournier
ba4ad2c71a
Added misc include files
1996-10-31 07:48:38 +00:00
Marc G. Fournier
14352a3ef6
.h files shouldn't include .h files, .c files should contain .h files...
...
remove postgres.h from fmgr.h creation
1996-10-31 07:37:57 +00:00
Marc G. Fournier
081fd70d92
Even compile generated .h files should be in ${SRCDIR}/include...
1996-10-31 07:25:15 +00:00
Marc G. Fournier
c59b3afbf1
Well, normally there wouldn't be anything in -I../.., and in a minute, there
...
won't be...
1996-10-31 07:22:07 +00:00
Marc G. Fournier
83311355d7
Add these files to ${SRCDIR}/include
1996-10-31 07:10:14 +00:00
Marc G. Fournier
0a761375e9
Move these files to ${SRCDIR}/include
1996-10-31 07:09:33 +00:00
Marc G. Fournier
5565d32e10
There is no -I../.. include files...
1996-10-31 07:04:50 +00:00
Marc G. Fournier
5cbff9a020
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...
1996-10-31 06:55:15 +00:00
Bruce Momjian
d91cc297bb
Changed include path.
1996-10-31 05:58:32 +00:00
Bruce Momjian
3d7fe6c97c
Added needed include file.
1996-10-31 05:58:01 +00:00
Bruce Momjian
7a93da98af
Missing from parser patch.
...
Added needed include file.
1996-10-31 05:57:23 +00:00
Bruce Momjian
3eb6cc491d
changed define(port) to define(PORTNAME_port)
...
Added needed include file.
1996-10-31 05:56:27 +00:00
Bruce Momjian
34945055a8
Changed make to gmake.
...
Added needed include file.
1996-10-31 05:55:24 +00:00
Bruce Momjian
4cf9d03ec7
Added prototypes missing from parser patch.
...
Added needed include file.
1996-10-31 05:54:27 +00:00
Bruce Momjian
08554e4abb
Removed false and changed to a commented true.
1996-10-31 05:53:10 +00:00
Marc G. Fournier
f1c95ed41e
Fix memset() call, variables being passed in wrong order.
...
Pointed out by: wieck@sapserv.debis.de
1996-10-30 21:18:22 +00:00
Marc G. Fournier
552620c8b2
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.
1996-10-30 06:18:42 +00:00
Marc G. Fournier
69c7f25bed
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>
1996-10-30 06:08:10 +00:00
Bruce Momjian
f59a46a8c8
Parser Overhaul
1996-10-30 02:02:41 +00:00
Bryan Henderson
1dfe4eaeb1
Fix small syntax error.
1996-10-30 00:36:59 +00:00
Bryan Henderson
aa71f918c3
Fix sigaction again to try for portability.
1996-10-29 21:53:48 +00:00
Bryan Henderson
71c1d59d1a
Remove another snprintf() for Solaris.
1996-10-29 21:51:13 +00:00
Bryan Henderson
63481f0b92
Use strncpy() and local buffers instead of snprintf(), since not everyone
...
has snprintf().
1996-10-28 09:05:29 +00:00
Bryan Henderson
aa1eac7979
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.
1996-10-28 09:03:50 +00:00
Bryan Henderson
b13ffd34b3
Add our own copy of inet_aton() for sparc_solaris, which doesn't have it in
...
the standard C library.
1996-10-28 09:00:54 +00:00
Bryan Henderson
b0d6f0aa63
Simplify make files, add full dependencies.
1996-10-27 09:55:05 +00:00
Bryan Henderson
1e39d14ff3
Correct #if statement so it compiles on Solaris. Thanks Keith Parks.
1996-10-26 05:03:24 +00:00
Marc G. Fournier
87b48ff032
D'Arcy's cleanups
1996-10-26 04:15:05 +00:00
Marc G. Fournier
716d506a81
Make sure the btree patch gets into 2.0 as well...
...
Still submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1996-10-25 09:55:36 +00:00
Bryan Henderson
e18d49d82a
Add CFLAGS+=-DPOSTPORT=... so we can take it out of the global CFLAGS.
1996-10-25 09:22:30 +00:00
Bryan Henderson
ec86e4b95b
Use EUROPEAN_DATES instead of EUROPEAN_STYLE
1996-10-25 06:02:52 +00:00
Bryan Henderson
3010f46d2a
E Use EUROPEAN_DATES from config.h instead of -D option
1996-10-25 06:00:49 +00:00
Marc G. Fournier
f6f8ca4970
Fixes: Growing backend when using nested function calls
...
Submitted by: wieck@sapserv.debis.de (Jan Wieck)
1996-10-24 07:59:46 +00:00
Marc G. Fournier
20b4c46e26
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:55:54 +00:00
Marc G. Fournier
e152661200
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:32:01 +00:00
Marc G. Fournier
c471d2bdeb
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
1996-10-24 06:30:40 +00:00
Marc G. Fournier
7f76072d81
Bruce...does this fix it once and for all? *grin*
1996-10-24 06:25:34 +00:00
Marc G. Fournier
f36b2560a4
Major code cleanups from D'arcy (-Wall -Werror)
1996-10-23 07:42:13 +00:00
Marc G. Fournier
29a0fb84fc
|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
1996-10-23 07:33:04 +00:00
Bryan Henderson
2db54b8e4f
Update "planner" directory to "optimizer" in include paths in this dead code.
1996-10-23 07:14:43 +00:00
Marc G. Fournier
82b83f6f71
Cosmetic changes to ordering of #include files
1996-10-21 11:49:41 +00:00
Marc G. Fournier
9a7fda57ee
-Wall'd
1996-10-21 09:37:26 +00:00
Marc G. Fournier
aa907f7d0c
-Wall'd
1996-10-21 08:31:23 +00:00
Marc G. Fournier
8385d557d1
-Wall'd ... I missed a subdir under access :(
1996-10-21 07:38:20 +00:00
Marc G. Fournier
f47ffc9a4e
Make line 159:bp = NULL, to quiet compiler
...
Suggested by: Randy Terbush <randy@zyzzyva.com>
1996-10-21 07:18:08 +00:00
Marc G. Fournier
c9f8bad182
-Wall'd
...
That finishes access/*
1996-10-21 07:15:18 +00:00
Bryan Henderson
1363ca1d52
Force user to set PORTNAME. Remove NAMEDATALEN from CFLAGS (don't need it
...
there because it's in config.h, which is cleaner).
1996-10-21 06:56:57 +00:00
Marc G. Fournier
b446f38510
-Wall'd
1996-10-21 05:59:49 +00:00
Marc G. Fournier
ede7e6b045
-Wall'd
1996-10-21 05:45:21 +00:00
Marc G. Fournier
0452227989
-Wall Cleanup of gist subdirectory
1996-10-21 05:14:02 +00:00
Marc G. Fournier
95874fa034
-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'
1996-10-21 05:11:00 +00:00
Marc G. Fournier
8325d9fc3b
Define prototypes from giststrat.c required in gistscan.c
1996-10-21 05:05:42 +00:00
Marc G. Fournier
d458a1c747
Other then:
...
indextuple.c:159: warning: `bp' might be used uninitialized in this function
this directory passes -Wall -Werror under FreeBSD
1996-10-20 22:04:49 +00:00
Marc G. Fournier
597a1de903
remove an #ifdef/#else/#endif that doesn't actually have anything inside
...
of it
1996-10-20 21:51:45 +00:00
Marc G. Fournier
2217b1ccd8
Make default HAVE_MEMMOVE defined, undef inside of definitions for sparc
1996-10-20 20:58:14 +00:00
Marc G. Fournier
331bb53b0f
change '#if defined(PORTNAME_sparc)' to '#if !defined(HAVE_MEMMOVE)'
1996-10-20 20:57:06 +00:00
Marc G. Fournier
925ea01ed6
Add #define HAVE_MEMMOVE for systems that do have it.
1996-10-20 20:40:17 +00:00
Marc G. Fournier
7b58bb0088
Clean up comments (-Wall -Werror)
1996-10-20 20:34:06 +00:00
Marc G. Fournier
13cd836d62
#include file cleanup
1996-10-20 10:53:18 +00:00
Marc G. Fournier
e1220b7c21
More #include cleanups
...
Once access/* is cleaned out, will redo using -Wall on compile to
make sure that all prototyping is correct
1996-10-20 09:27:24 +00:00
Marc G. Fournier
5a0b450c78
First pass at fixing my own mistakes
...
Mainly...fix up the includes I removed, as well as prototypes
Pointed out by D'Arcy
1996-10-20 08:32:11 +00:00
Marc G. Fournier
dd007d4c39
Another directory cleaned out
1996-10-20 06:56:04 +00:00
Marc G. Fournier
2b5a8bc38b
More include files cleaned up
1996-10-20 06:35:27 +00:00
Marc G. Fournier
3cb7ff8db2
Okay...another directory cleaned out and compilable
1996-10-20 06:34:30 +00:00
Marc G. Fournier
5eee45ea05
Add HAVE_Cplusplus= true to BSD44_derived Makefile.inc, as I know that
...
FreeBSD/NetBSD both ship with gcc 2.7.x
1996-10-19 06:36:52 +00:00
Marc G. Fournier
2a23c4e724
Not quite the cleanest way to do it, but add an option to Makefile.global
...
that allows one to compile libpq++
this should be set on a port-by-port basis
1996-10-19 06:33:55 +00:00
Marc G. Fournier
0eac5b0ed5
Welp, another subdirectory cleaned out of redundant/unused #include
...
files
1996-10-19 06:27:33 +00:00
Marc G. Fournier
e77f64af62
There...that pretty much cleans up redundant/unused #includes in
...
access/common...how many more directories to go? :)
1996-10-19 04:51:44 +00:00
Marc G. Fournier
f4ba64a0ac
Almost have access/common cleaned up...
1996-10-19 04:49:29 +00:00
Marc G. Fournier
23f444f64d
A few more yet...
1996-10-19 04:48:30 +00:00
Marc G. Fournier
6592bbaf08
wish there was an easier way to clean this up...
1996-10-19 04:46:28 +00:00
Marc G. Fournier
4c9309a8d5
another small one
1996-10-19 04:36:08 +00:00
Marc G. Fournier
42dd813494
Hopefully that cleans up the cruft from rel.h
1996-10-19 04:31:45 +00:00
Marc G. Fournier
1d5c3ec010
another...
1996-10-19 04:25:53 +00:00
Marc G. Fournier
c6979925ea
its coming...
1996-10-19 04:24:57 +00:00
Marc G. Fournier
7bb98fd618
step by step...file by file...
1996-10-19 04:16:04 +00:00
Marc G. Fournier
7260183685
...same
1996-10-19 04:09:32 +00:00
Marc G. Fournier
d0bfb6b78d
slow work...
1996-10-19 04:08:58 +00:00
Marc G. Fournier
f697bf3b85
and another
1996-10-19 04:06:48 +00:00
Marc G. Fournier
6fd191c899
another one cleaned up
1996-10-19 04:05:44 +00:00
Marc G. Fournier
9b6b82b91d
and another one..
1996-10-19 04:03:29 +00:00
Marc G. Fournier
f3671cc910
another another one
1996-10-19 04:02:39 +00:00
Marc G. Fournier
c2c618fada
anothre one reduced to its component parts
1996-10-19 04:01:41 +00:00
Marc G. Fournier
d9ebe7711f
clean out include files of including other includes files except those
...
absolutely required
1996-10-19 03:58:34 +00:00
Marc G. Fournier
d7dd05db55
Another cleaned up
1996-10-19 03:39:04 +00:00
Marc G. Fournier
5dedad99a1
One at a time...another one is complete...
1996-10-19 03:28:20 +00:00
Marc G. Fournier
69b42eb1a3
another one with #include file clean'd up
1996-10-19 03:12:50 +00:00
Marc G. Fournier
9834913cd0
All #include's removed from *.h files, so cleaning up the .c #includes...
...
First file of, what...1000's?
1996-10-18 19:01:16 +00:00
Marc G. Fournier
9caf84bc00
#include "postgres.h" is a standard include for all .c files, auto-including
...
config.h, c.h *and* elog.h...added elog.h
1996-10-18 18:28:33 +00:00
Marc G. Fournier
1c5fa955cd
Add prototype for heap_getattr() to quiet compiler
1996-10-18 17:58:33 +00:00
Vadim B. Mikheev
c8fc4c9607
Reap deleted/unused tuples on page-base
1996-10-18 08:15:58 +00:00
Vadim B. Mikheev
bc50067426
1. Reap deleted/unused tuples on page-base
...
2. Reap unused tuples too
3. Reap empty pages
4. Check if a page is initialized, initialize it if not
and reap it
5. Binary search in list of reapped pages/tids to check
is the heap' tid pointed by a index' tuple on this list
(it's mu-u-uch faster)
1996-10-18 08:13:36 +00:00
Vadim B. Mikheev
327d900b51
Move #define PageIsNew (true if page is not initialize) to bufpage.h
1996-10-18 07:43:43 +00:00
Vadim B. Mikheev
57de92c648
Move definition of PageIsNew from hio.c to here
1996-10-18 07:39:07 +00:00
Marc G. Fournier
46606ab077
Document some more #ifdef's
1996-10-18 05:59:52 +00:00
Marc G. Fournier
94e825145d
Document more #ifdef's into config.h
...
Get rid of ESCAPE_PATCH ifdef, as its on by default, and there is no
apparent reason for turning it off...it fixes a bug
1996-10-18 05:59:17 +00:00