Commit Graph

1035 Commits

Author SHA1 Message Date
Marc G. Fournier
fb3b9d7661 Fix a comment that wasn't commente'd out
Pointed out by: Erik Bertelsen <erik@sockdev.uni-c.dk>
1996-11-14 20:06:39 +00:00
Bruce Momjian
fdcf5ff79c Remove comments psql was putting in output, typo's.
psql now returns error from queries and errors files, so ignore return code.
1996-11-14 16:09:28 +00:00
Bruce Momjian
0365c51e30 Overhaul MainLoop input processing for quotes, comments, backslashes. 1996-11-14 16:08:05 +00:00
Bryan Henderson
f64b840387 Remove most compile-time options, add a few runtime options to make up for it.
In particular, no more compiled-in default for PGDATA or LIBDIR.  Commands
that need them need either invocation options or environment variables.
PGPORT default is hardcoded as 5432, but overrideable with options or
environment variables.
1996-11-14 10:25:54 +00:00
Marc G. Fournier
7ac541daf1 moved man pages here, as requested by Bryan 1996-11-14 10:18:14 +00:00
Bryan Henderson
65a10b1be6 Missed this part when I eliminated $(srcdir); src/bin stuff won't compile. 1996-11-14 09:24:39 +00:00
Bryan Henderson
6b135c9391 Use port-protos.h instead of trying to declare random() and srandom()
explicitly.
1996-11-14 08:23:31 +00:00
Bryan Henderson
902d2b8bac Use -Wno-error option only if compiler is gcc. 1996-11-14 07:33:34 +00:00
Bryan Henderson
b4d689070e Use -W options only if compiler is gcc. 1996-11-14 07:19:26 +00:00
Bryan Henderson
200d4a4ec3 Include stdlib.h to gives its NULL, etc. definitions precedence over ours. 1996-11-14 06:06:39 +00:00
Bruce Momjian
25b4ca4284 Added percentage to CASSERT comment. 1996-11-14 00:26:23 +00:00
Marc G. Fournier
07a65b2255 Commit of a *MAJOR* patch from Dan McGuirk <djm@indirect.com>
Changes:

        * Unique index capability works using the syntax 'create unique
          index'.

        * Duplicate OID's in the system tables are removed.  I put
          little scripts called 'duplicate_oids' and 'find_oid' in
          include/catalog that help to find and remove duplicate OID's.
          I also moved 'unused_oids' from backend/catalog to
          include/catalog, since it has to be in the same directory
          as the include files in order to work.

        * The backend tries converting the name of a function or aggregate
          to all lowercase if the original name given doesn't work (mostly
          for compatibility with ODBC).

        * You can 'SELECT NULL' to your heart's content.

        * I put my _bt_updateitem fix in instead, which uses
          _bt_insertonpg so that even if the new key is so big that
          the page has to be split, everything still works.

        * All literal references to system catalog OID's have been
          replaced with references to define'd constants from the catalog
          header files.

        * I added a couple of node copy functions.  I think this was a
          preliminary attempt to get rules to work.
1996-11-13 20:56:15 +00:00
Bryan Henderson
0cec8fe26c Fix syntax error introduced in last update. 1996-11-13 11:43:04 +00:00
Bryan Henderson
b20766ccc4 Eliminate MKDIR, srcdir, objdir. Centralize setting of LIBPQDIR. 1996-11-13 10:36:36 +00:00
Bryan Henderson
fdc1cf2434 Make shared library builds work for BSD44_derived. 1996-11-13 08:36:31 +00:00
Bryan Henderson
b269793975 Forgot in yesterday's make file blitz. 1996-11-13 06:36:38 +00:00
Bryan Henderson
d7dd9295b7 End of the make file simplifications. 1996-11-12 11:43:32 +00:00
Bryan Henderson
594525aec1 Put shared libraries in main directory, not obj/ 1996-11-12 11:41:27 +00:00
Marc G. Fournier
c8708c5f9b Fix for finding the include files 1996-11-12 11:16:44 +00:00
Bryan Henderson
b5499249e5 Quiet compiler warnings. 1996-11-12 11:09:13 +00:00
Bryan Henderson
17befd6c69 Use new utils/version.c instead of backend/utils/init/magic.c. 1996-11-12 06:47:10 +00:00
Bryan Henderson
bbe89089c8 Add dependency for install. 1996-11-12 06:11:52 +00:00
Bryan Henderson
f45b50cfe0 Add install dependency. 1996-11-12 06:10:10 +00:00
Bryan Henderson
4f1e59f72b Fix bug where it tries to do a cleardbdir when you make install. 1996-11-12 02:54:30 +00:00
Marc G. Fournier
c7ce63e04c Add include file postgres.h 1996-11-11 16:33:12 +00:00
Marc G. Fournier
39b4a0505f Add a blank install target so that 'make install' works 1996-11-11 16:30:07 +00:00
Marc G. Fournier
64f80c76d8 fix 'conflicting types' errors 1996-11-11 14:55:49 +00:00
Marc G. Fournier
b99e3b0ccc Add missing include errno.h 1996-11-11 14:44:04 +00:00
Bryan Henderson
b0961b3974 Goes with the recently added src/utils/version.c, will replace some stuff in
miscadmin.h.
1996-11-11 14:24:38 +00:00
Bruce Momjian
a157098f7c Fixed double pfree on opaque. 1996-11-11 14:02:10 +00:00
Bryan Henderson
bf80f41ec1 Add utils directory for cross-subsystem tools to keep make files from having
to be sleazy and reach into other subsystems' directories.  First entry in
this directory is the PG_VERSION file interface, which must be used by the
backend and also the pg_version program (which is used by initdb).
1996-11-11 13:51:57 +00:00
Bryan Henderson
6f708e42d1 Makefile simplification: the "bin" chapter 1996-11-11 13:41:36 +00:00
Bryan Henderson
a7511908e1 Add DASH_N, BACKSLASH_C variables, moved from postgres.shell.mk. 1996-11-11 13:24:43 +00:00
Marc G. Fournier
58413fd9fc -----
|After sending my previous changes I found one more thing in Makefile.global.
|Any tests should be done after including Makefile.custom or else there
|won't be anything, particularly the port name, to base the tests on.
|
-----

more changes to makefile.global from D'Arcy
1996-11-11 12:19:05 +00:00
Marc G. Fournier
41b8c2c849 As proposed,
following is the patch to libpq's large object interface that
    removes the requirement to  include  fmgr.h  into  fe-lobj.c.
    The  large object interface now ask's the backend to tell the
    OID's of all the required functions in pg_proc.

From: wieck@sapserv.debis.de (Jan Wieck)
1996-11-11 12:16:57 +00:00
Marc G. Fournier
2bdded3540 Various cleanups from D'Arcy 1996-11-11 12:14:45 +00:00
Marc G. Fournier
6913c8b4a4 Add an abort() call to ExceptionalCondition so that is Assert is
called, it dumps core...

ABORT_ON_ASSERT must be defined, as I don't know if this is the correct
way to do this...
1996-11-11 11:49:40 +00:00
Marc G. Fournier
9fc64aefe1 change include c.h to postgres.h 1996-11-11 11:29:15 +00:00
Bruce Momjian
42a344683a Remove warnings when readline is not used. 1996-11-11 05:55:33 +00:00
Bruce Momjian
13d44b4aac Warning removal cleanup 1996-11-11 04:54:54 +00:00
Bruce Momjian
8d9be647dc Moved -Werror to COPT. 1996-11-11 03:12:00 +00:00
Bruce Momjian
1a5b4b9ffe Removed -Wmissing-declaration. 1996-11-10 17:35:58 +00:00
Bryan Henderson
60915ed2c2 Change gmake to $(MAKE) so backend compiles on system with no "gmake". 1996-11-10 04:09:51 +00:00
Bruce Momjian
77f8dff617 prototype cleanup 1996-11-10 03:30:46 +00:00
Bryan Henderson
08029facb3 Recognize dependencies more reliably. 1996-11-10 03:13:59 +00:00
Bruce Momjian
aaeef4d17d All external function definitions now have prototypes that are checked. 1996-11-10 03:06:38 +00:00
Bryan Henderson
bf5cbbf789 Quiet compiler warnings. 1996-11-10 02:27:15 +00:00
Bryan Henderson
2e21b7e4bc Add #include <ctype.h> to quiet compiler about missing declaration of isspace(). 1996-11-10 01:46:14 +00:00
Bryan Henderson
9f1b6bf7db Add #include <unistd.h> to quiet compiler warning about missing getopt() declaratoin. 1996-11-10 01:37:48 +00:00
Bryan Henderson
4e70c05979 Add #include <unistd.h> to quiet warning about missing getopt() declaration. 1996-11-10 01:35:39 +00:00
Bryan Henderson
0e5ab3655c Remove #include <regex.h> so it compiles on systems with GNU regex library. 1996-11-10 01:20:44 +00:00
Bryan Henderson
5d9e25c5ff Add USE_POSIX_TIME, HAVE_TZSET for Linux so backend compiles. 1996-11-10 00:50:54 +00:00
Bryan Henderson
d7806dc5ee Make it find inet_aton.h so backend compiles on Solaris. 1996-11-10 00:38:38 +00:00
Marc G. Fournier
4aa1734f36 Added in PQconnectdb() function
Submitted by: wieck@sapserv.debis.de (Jan Wieck)
1996-11-09 10:39:54 +00:00
Bruce Momjian
a0990e1884 Makefile cleanup after reorganization 1996-11-09 06:24:51 +00:00
Bruce Momjian
1d0e308395 Added new include file. 1996-11-09 05:48:28 +00:00
Marc G. Fournier
757b829ea8 A few more sparc_solaris cleanups from keith parks 1996-11-09 01:48:32 +00:00
Bruce Momjian
78078236ea Fix typo in file name found during install. 1996-11-08 21:40:11 +00:00
Bruce Momjian
c9c0e111b8 More compile cleanups 1996-11-08 20:46:33 +00:00
Marc G. Fournier
8006c6f52f Somehow PORTNAME keeps getting changed to BSD44_derived :( 1996-11-08 07:47:52 +00:00
Marc G. Fournier
cecf081aba Change includes from "" to <> 1996-11-08 06:43:28 +00:00
Bryan Henderson
7886d7351e Fix perbyte_cpu thing 1996-11-08 06:24:58 +00:00
Bruce Momjian
4b2b8592a0 Compile and warning cleanup 1996-11-08 06:02:30 +00:00
Marc G. Fournier
026387013e Secondly, small problem when trying to create a MAX/MIN aggregate in 1.09.
>From the create_aggregate man page...

"The arguments to state-transition-function-1 must be
(stype1,basetype), and its return value must be stype1."

create aggregate MIN (sfunc1 = int2smaller,
                      basetype = int2,
                      stype1 = int2);

will fail becase int2smaller and int2larger are in pg_proc
as returning an int4.  Can't happen since both args have to
be int2.

From: Darren King <aixssd!ceodev!darrenk@abs.net>
1996-11-08 01:08:37 +00:00
Marc G. Fournier
ad6ca0c3af Another patch to quiet the compiler from D'Arcy 1996-11-08 00:59:10 +00:00
Marc G. Fournier
2768f391a4 There is a problem in the Makefile of libpgtcl on linux (and maybe also on
other platforms).  If I do the standard make + make install the shared library
is not linked with the the libpq library and when I try to load it in the
standard Tcl or Tk shell I get a lot of unresolved symbols.  The bug doesn't
affect pgtclsh because it is linked also with libpq. The problem exists only
when using the dynamic load feature of Tcl7.5.


From: Massimo Dal Zotto <dz@cs.unitn.it>
1996-11-08 00:58:07 +00:00
Marc G. Fournier
7d8b794a9a Add some missing includes
From: Randy Terbush <randy@zyzzyva.com>
1996-11-08 00:56:17 +00:00
Marc G. Fournier
b38d565fc3 D'Arcy's recent cleanups 1996-11-08 00:46:14 +00:00
Bryan Henderson
00b1fb07f0 Try to fix mode. 1996-11-07 05:15:31 +00:00
Bryan Henderson
33b433b1af Try to fix mode. 1996-11-07 05:10:17 +00:00
Bruce Momjian
388c0d81da Change instructions for 1.*. 1996-11-06 22:32:18 +00:00
Marc G. Fournier
0020e8790d Another directory that compiles with no errors, and few warnings 1996-11-06 10:32:10 +00:00
Marc G. Fournier
1d0dd471fa Okay...this pretty much cleans out the include files.
I'm able to get through a 'make' of the backend with no errors except
the occasional 'might not be initialized error', which is nothing major,
just annoying.

Have a few patches from D'Arcy to incorporate, but am waiting until I can
get a clean compile first, which I'm hoping to have before bed, or sometime
tomorrow.
1996-11-06 10:31:02 +00:00
Marc G. Fournier
b6e640f829 Make sure that #include <postgres.h> is included in fmgrtab.c 1996-11-06 10:22:13 +00:00
Marc G. Fournier
b49d41884f Add prototype for: int DebugFileOpen() 1996-11-06 10:15:25 +00:00
Marc G. Fournier
9f5eac1f97 ...same... 1996-11-06 09:56:47 +00:00
Marc G. Fournier
58a0150f64 More files cleaned out 1996-11-06 09:29:26 +00:00
Marc G. Fournier
be9197320a One by one, file by file 1996-11-06 09:27:29 +00:00
Marc G. Fournier
3f07f6bab2 Another 1996-11-06 09:24:57 +00:00
Marc G. Fournier
7d5e795596 Getting there, one by one... 1996-11-06 09:21:42 +00:00
Marc G. Fournier
92ec7b5812 And another 1996-11-06 09:19:16 +00:00
Marc G. Fournier
8b6b4d063a another one bites the dust 1996-11-06 09:17:31 +00:00
Marc G. Fournier
83d93d437b Just a couple of small mods 1996-11-06 08:54:17 +00:00
Marc G. Fournier
e0b772cc00 another gone 1996-11-06 08:52:04 +00:00
Marc G. Fournier
a472a29bb4 I'm getting there, slowly :) 1996-11-06 08:48:33 +00:00
Marc G. Fournier
e232909157 Slowly getting faster to make sure it compiles...still needs cleaning
up, but one thing at a time :)
1996-11-06 08:27:16 +00:00
Marc G. Fournier
7385619f14 Clean it up so that it compiles 1996-11-06 08:21:43 +00:00
Marc G. Fournier
33a8df7edd Another one cleaned up 1996-11-06 08:07:45 +00:00
Marc G. Fournier
98f72c28dc Oops, two includes unrequired 1996-11-06 08:05:02 +00:00
Marc G. Fournier
08905a7406 Another one bite sthe dust 1996-11-06 08:02:40 +00:00
Marc G. Fournier
6508241acb another include cleaned out 1996-11-06 07:50:12 +00:00
Marc G. Fournier
87b07a3974 Further include file cleanups 1996-11-06 07:44:18 +00:00
Marc G. Fournier
9e3d4c43a7 Another directory cleaned up 1996-11-06 07:31:26 +00:00
Marc G. Fournier
8544daf645 Another one bites the dust 1996-11-06 07:05:18 +00:00
Marc G. Fournier
ce4c0ce1de Some compile failure fixes from Keith Parks <emkxp01@mtcc.demon.co.uk> 1996-11-06 06:52:23 +00:00
Marc G. Fournier
e4725ee76a Makes it compile...still needs work 1996-11-05 11:57:55 +00:00
Marc G. Fournier
90113e2847 another one quickly done up 1996-11-05 11:29:45 +00:00
Marc G. Fournier
dc0e256902 clean this one 1996-11-05 11:23:43 +00:00
Marc G. Fournier
225a224792 Missed a file...
access now compile with -Wall -Werror
1996-11-05 11:17:47 +00:00
Marc G. Fournier
03eb5a50e7 There, that cleans *that* out 1996-11-05 11:12:33 +00:00
Marc G. Fournier
050d148295 One more to go 1996-11-05 10:54:20 +00:00
Marc G. Fournier
6608278ea4 these ones have their dependencies cleaned up 1996-11-05 10:37:16 +00:00
Marc G. Fournier
500ce42f37 Almost done access... 1996-11-05 10:35:38 +00:00
Marc G. Fournier
4fa90e38d5 More cleanups 1996-11-05 10:02:06 +00:00
Marc G. Fournier
466f5fd729 More cleanups 1996-11-05 09:53:03 +00:00
Marc G. Fournier
4312192e6b another directory cleaned of extraneous #includes
makefile fixed for fmgr.h
1996-11-05 09:40:25 +00:00
Marc G. Fournier
0cf60fb718 More cleaned out #include files
Makefile fixed for fmgr.h
1996-11-05 08:19:01 +00:00
Marc G. Fournier
d1e9a76131 Another run through.
This gets us a clean compile of 'common' and 'gist' with *clean* #include
files
1996-11-05 08:18:44 +00:00
Marc G. Fournier
1c3a7767ca Re-add -I../.. for fmgr.h
Change #include "" to #include <>

Remove a few unused #includes

Make sure it compiles with -Wall -Werror
1996-11-05 07:42:46 +00:00
Marc G. Fournier
efef619b83 And double check changes 1996-11-05 07:41:13 +00:00
Marc G. Fournier
6c8482c970 Make sure all changes commited 1996-11-05 07:38:17 +00:00
Marc G. Fournier
51716fdd8d Another 1996-11-05 07:24:03 +00:00
Marc G. Fournier
9ec5e78613 And another one 1996-11-05 07:22:50 +00:00
Marc G. Fournier
bc711a3f54 Another one bits the dust... 1996-11-05 07:20:09 +00:00
Marc G. Fournier
54c2aa99bd And another... 1996-11-05 07:18:05 +00:00
Marc G. Fournier
8202bce9ba And another.. 1996-11-05 07:15:58 +00:00
Marc G. Fournier
7585d25185 Another one cleaned out 1996-11-05 07:07:22 +00:00
Marc G. Fournier
d2125805d1 Another directory totally cleaned out 1996-11-05 06:11:08 +00:00
Marc G. Fournier
abf578ac6c Fix c.h for sparc_solaris
Pointed out by Keith Parks
1996-11-05 05:28:20 +00:00
Marc G. Fournier
fd569a2308 Clean up a few of the #include files 1996-11-05 05:26:32 +00:00
Marc G. Fournier
48a7170a71 Added missing #includes pointed out by Keith Parks 1996-11-05 05:25:44 +00:00
Marc G. Fournier
d2746c65b5 Make sure all the cleaned includes are commited 1996-11-04 12:12:52 +00:00
Marc G. Fournier
0e2822072c Make sure all the cleaned up includes are commited 1996-11-04 12:11:44 +00:00
Marc G. Fournier
dc037969ad Another one completely cleaned up 1996-11-04 12:07:05 +00:00
Marc G. Fournier
0b3cb80e03 finally, this directory is (should be!) totally clean 1996-11-04 11:51:27 +00:00
Bryan Henderson
7870c5a0d3 Add frontend \copy command. 1996-11-04 09:17:55 +00:00
Marc G. Fournier
434201d8d7 another pass through.
Note.  all include files that have been hit so far have had extraneous
       include files cleaned out and are reduced to...the lowest common
       "include file", based on 'cc -Wall -I. test.c', where test.c is:

#include "postgres.h"
#include "<top of branches>" (ie. top of branches this time was utils/fcache2.h)
1996-11-04 08:53:07 +00:00
Marc G. Fournier
63482946c7 More cleanups (this one will most likely break under Win32, if anyone is
working on it)
1996-11-04 08:14:05 +00:00
Marc G. Fournier
82400d4c50 Next, based on utils/catcache.h 1996-11-04 07:59:39 +00:00
Marc G. Fournier
5a5f9420e5 Another series started from utils/builtins.h 1996-11-04 07:46:06 +00:00
Marc G. Fournier
d93d3c843a -Wall based cleanup of include files, based from acl.h, and everything
that it depends on
1996-11-04 07:18:46 +00:00
Marc G. Fournier
796aca3916 include utils/palloc.h as a default include, as its used more often then
not
1996-11-04 06:35:36 +00:00
Bryan Henderson
089dfb61f0 Add ability to deal with the fmgr.h dependency. 1996-11-04 06:32:59 +00:00
Bruce Momjian
5061c23ac2 Rename CDEBUG to COPT 1996-11-04 05:15:07 +00:00
Bruce Momjian
de3286ce3a Remove AMERICAN STYLE. Not used. 1996-11-04 05:02:44 +00:00
Bruce Momjian
f95322d9ef Remove optimization-specific stuff from OS sections. Use CDEBUG. 1996-11-04 05:01:47 +00:00
Bruce Momjian
18bbad7696 Remove OPENLINK define 1996-11-04 04:53:51 +00:00
Bruce Momjian
0108fddf13 Remove NULL_PATCH define 1996-11-04 04:35:48 +00:00
Bruce Momjian
8edbc3bde4 Remove ARRAY_PATCH define 1996-11-04 04:19:55 +00:00
Bruce Momjian
e43dfad289 Remove ESCAPE_PATCH define 1996-11-04 04:05:16 +00:00
Bruce Momjian
7e42f4814d Removed PORTNAME_. Use OS version only. 1996-11-04 04:00:56 +00:00
Marc G. Fournier
510ebf75a1 Another first pass at cleaning up the #includes 1996-11-03 23:57:43 +00:00
Marc G. Fournier
d46d53387f Not sure if this is the right place, but add a prototype for
Bryan's superuser() function
1996-11-03 23:49:07 +00:00
Marc G. Fournier
d2aa40517a Cleaned up include headers 1996-11-03 23:46:28 +00:00
Marc G. Fournier
4029fb52c6 first pass at cleaning up include files 1996-11-03 23:27:08 +00:00
Marc G. Fournier
ca112038ab More include file cleanups 1996-11-03 22:58:26 +00:00
Marc G. Fournier
302b809793 Changes required so that access/* compiles cleanly...
cleaning up behind myself before *yawn* bed :)
1996-11-03 12:35:27 +00:00
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
Marc G. Fournier
1c00e68fad Moved definition of MAXPATHLEN to config.h 1996-10-18 05:50:04 +00:00
Marc G. Fournier
927e5887a0 Added a #define NEED_SIG_JMP to config.h
Removed #ifdef's for OPENLINK_PATCH.  We enable it by default, and nobody
*has* to enable the functionality, but no reason to retain the "old code"
1996-10-18 05:47:12 +00:00
Marc G. Fournier
6c3dff4245 Document #ifdef's from backend/access subdirs so that we know what
features(?) are available
1996-10-18 05:22:24 +00:00
Marc G. Fournier
2ecb7e5e2c Moved '#define *DEBUG' defines to config.h, and document where first
found.

Document any '#ifdef' segments found in config.h
1996-10-18 05:21:27 +00:00
Marc G. Fournier
6e420677dd Moved '#define *DEBUG' defines to config.h, and document where first
found.

Document any '#ifdef' segments found in config.h

Remove gistold.c, since it was older copy of gist.c
1996-10-18 05:21:09 +00:00
Marc G. Fournier
6c8465f69b #define cleanup: moved #define IPORTAL_DEBUG to config.h 1996-10-18 04:54:47 +00:00
Marc G. Fournier
2d8ffead24 Moved all the CFLAG -D's from the makefiles to config.h towards better
centralized configurations/porting...
1996-10-18 04:49:09 +00:00
Marc G. Fournier
1b6322a9c0 Moved more -D's out of the port specific Makefiles straight into the
config.h file
1996-10-18 04:45:54 +00:00
Marc G. Fournier
d16bc9ce37 Centralize more of the defines from backend/port under config.h
Further ports should *really* avoid backend/port and make use of
config.h
1996-10-18 00:33:41 +00:00
Marc G. Fournier
a839456c41 Move "port specific" #ifdefs out of here and into config.h
- created a HAVE_TZSET define for this purpose
1996-10-17 23:59:45 +00:00
Marc G. Fournier
c39857925b Add a HAVE_TZSET define to clean up defines in backend/utils/adt/nabstime.c 1996-10-17 23:55:27 +00:00
Bryan Henderson
6cbaa93b82 Change treatment of sigaction structure again to include even more platforms.
Thanks D'Arcy.
1996-10-16 09:41:13 +00:00
Bryan Henderson
ec610a7696 Remove 4th element of sigaction structure so it works on more platforms. 1996-10-15 07:16:41 +00:00
Bruce Momjian
83cb729887 More closing of relations left open by parser. 1996-10-14 03:53:53 +00:00
Bruce Momjian
1a865b8338 Change display of char(5) to (bp)char 5 so psql \d can
distinguish between char and char(1).
1996-10-14 00:33:47 +00:00
Bruce Momjian
81f2f81960 Removed const warning. 1996-10-13 18:39:41 +00:00
Bruce Momjian
54612f5141 D'Arcy change. 1996-10-13 18:38:51 +00:00
Bruce Momjian
baf9a6e24c Added include needed for recent addition.
I hope everyone has sys/socket.h.
1996-10-13 18:38:04 +00:00
Bruce Momjian
e6cacf9211 Added include needed for recent addition. 1996-10-13 18:37:19 +00:00
Bruce Momjian
d31909be6c Fix structure member name from previous patch. 1996-10-13 17:13:58 +00:00
Bruce Momjian
44bf483446 Removed duplicate MAXNAMELEN define I accidentally added. 1996-10-13 13:46:20 +00:00
Bruce Momjian
86be8677a9 Added consistent include file handling for MAXHOSTNAMELEN.
If I have introduced any syntax errors with this, I will patch them in
the morning, and Marc will have a good laugh.
1996-10-13 04:50:27 +00:00
Bruce Momjian
abb1b3e770 I checked the alter table code, and started suspecting the relation
cache.  I found if I manually added a line to flush the whole relation
cache, the assert error disappeared.  Looking through the code, I found
that the relation cache is flushed at the end of each query if the
reference count is zero for the relation.  However, printf's showed that
the rd_relcnt(reference count) for the accessed query was not returning
to zero after each query.

It turns out the parser was doing a heap_ropen in parser/analyze.c to
get information about the table's columns, but was not doing a
heap_close.

This was causing the query after the ALTER TABLE ADD to see the old
table structure, and the executor's assert was reporting the problem.
1996-10-13 04:26:39 +00:00
Bryan Henderson
bef3c89a1c Fix prototypes so postmaster.c will compile. 1996-10-13 04:01:05 +00:00
Bryan Henderson
369848857e New host-based authentication -- set up pg_hba.conf instead of pg_hba 1996-10-12 07:49:56 +00:00
Bryan Henderson
785234d6ca New host-based authentication -- send error message when authentication fails 1996-10-12 07:48:49 +00:00
Bryan Henderson
4b5c977782 New host-based authentication with ident 1996-10-12 07:47:12 +00:00
Bryan Henderson
57026d6009 New host-based authentication -- install pg_hba.conf instead of pg_hba 1996-10-12 07:44:39 +00:00
Bryan Henderson
09bb369d23 Separate general purpose functions from portal functions so they may be
used in test drivers.
1996-10-11 09:47:14 +00:00
Bryan Henderson
6d70d550e6 Prepare for new host-based authentication 1996-10-11 09:12:18 +00:00
Marc G. Fournier
81cda65f74 Add a MIPS/NetBSD port... 1996-10-11 03:56:41 +00:00
Marc G. Fournier
b7559f94cd 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:25:00 +00:00
Marc G. Fournier
2663dfd94e 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:22:59 +00:00
Marc G. Fournier
97906ac697 Reinstituted NAMEDATALEN OIDNAMELEN in Makefile.global so that initdb
works again...
1996-10-11 02:38:16 +00:00
Bryan Henderson
329b38eebb Add PGUSER environment variable for client to specify Postgres username. 1996-10-10 08:20:11 +00:00
Bruce Momjian
ca5f6dba0f Comment cleanup. 1996-10-10 00:18:52 +00:00
Bruce Momjian
9b1e61b7e9 Changed psql \h command to print commands in three columns.
No more scrolling off the screen.
1996-10-09 00:15:44 +00:00
Bruce Momjian
c306d06cf9 Change sh-style comments to C comments. 1996-10-08 22:23:19 +00:00
Bruce Momjian
dd09982f3e Add execute permission. 1996-10-08 04:09:50 +00:00
Bruce Momjian
dcef39f03b Add execute permits. 1996-10-08 04:04:38 +00:00
Bruce Momjian
5fb8eaa592 Add execute permission. 1996-10-08 03:53:10 +00:00
Marc G. Fournier
d6dfbecb07 Moved the following definitions to include/config.h from Makefile.global:
NAMEDATALEN
	OIDDATALEN
	EUROPEAN_DATES
	HBA
	DEADLOCK_TIMEOUT
	OPENLINK_PATCHES
	NULL_PATCH
	ARRAY_PATCH

Attempting to document and centralize as many of the "defines" as possible...
kinda useless to have defines if nobody knows they exist, eh?
1996-10-08 00:09:05 +00:00
Marc G. Fournier
87bb8daab8 Move the NAMEDATALEN/OIDNAMELEN defines to include/config.h 1996-10-07 23:57:01 +00:00
Marc G. Fournier
6470d5b1c1 Fix handling of no '../doc' directory in compile procedure... 1996-10-07 23:53:47 +00:00
Marc G. Fournier
4e8f5c337c Well I haven't received any feedback pro or con re my suggested new Tcl
function so I am going to assume that it is such a good idea that no
one sees any point in discussing it.  :-)  I have made two changes -
I have merged this into pgtclCmds.c and I have taken out any code for
updating tuples after the loop body runs.  See comments for discussion
of this.

I have also fixed up the error checking stuff so that break, continue
and syntax errors have the expected result.

Submitted by: D'Arcy Cain
1996-10-07 21:19:09 +00:00
Marc G. Fournier
ea733aa997 Fix a couple of small things from D'Arcy's last patch
Submitted by: D'Arcy Cain
1996-10-07 21:17:01 +00:00
Bruce Momjian
a409f40ea8 Modified Assert to be more selective. 1996-10-07 19:53:15 +00:00
Marc G. Fournier
3dc0c8e4e5 Fixed a missed change from Carsten Heyl <heyl@nads.de> 1996-10-07 07:18:34 +00:00
Marc G. Fournier
de466eb8f4 Mostly adding "const" keyword and making some functions static.
Submitted by: D'Arcy Cain
1996-10-07 03:30:40 +00:00
Bruce Momjian
257b4d090c Change new assert so it generates assert message rather than SIGSEG. 1996-10-07 02:50:19 +00:00
Bruce Momjian
f6792efcc7 Remove sytax errors from file. 1996-10-07 02:33:25 +00:00
Bruce Momjian
3a56b21832 Update help for alter table. remove EXTEND function. 1996-10-07 02:32:39 +00:00
Bruce Momjian
e8e78f4c7b Fix typo in help text. 1996-10-05 21:34:33 +00:00
Bruce Momjian
3a0bace14f Renamed file. 1996-10-05 21:16:34 +00:00
Marc G. Fournier
50e708ef88 Stylistic cleanups... 1996-10-05 20:39:05 +00:00
Bruce Momjian
8999ce097f Add comment about possible zero value. 1996-10-05 20:33:45 +00:00
Bruce Momjian
efac791640 Change shell-style comments to C-style. 1996-10-05 20:33:10 +00:00
Bruce Momjian
47279960a0 Fix assert to allow zero. OK'ed by Bryan. 1996-10-05 20:31:38 +00:00
Bruce Momjian
a433f22c24 Fix args to match prototype. 1996-10-05 20:30:31 +00:00
Bruce Momjian
f29e02017a Replace double // with /. THis confuses mkid. 1996-10-05 20:29:57 +00:00
Bruce Momjian
a974522f5f Added single-letter options and case statement. 1996-10-05 03:24:47 +00:00
Bruce Momjian
2d456c473d Improved creation of mkid files. 1996-10-05 03:23:49 +00:00
Marc G. Fournier
4feb696be7 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:32:07 +00:00
Marc G. Fournier
002be14c45 And bring in change from 1.0.7 tree to here... 1996-10-04 20:29:35 +00:00
Marc G. Fournier
ff25e44d03 Moved the define of SIGNAL_ARGS that D'Arcy just created to config.h so that
hopefully this sort of thing can eventually be determined using configure?
1996-10-04 20:20:57 +00:00
Marc G. Fournier
f8009e1786 The remainder of D'Arcy's changes, most notibly the usage of SIGNAL_ARGS 1996-10-04 20:17:11 +00:00
Marc G. Fournier
27bccb9db3 This patch fixes problems in initdb, including that it doesn't run
with some versions of sh, and a bug in the master make file that
causes it to issue the message "postgres has been built" at the wrong
time.

Submitted by: bryanh@giraffe.netgate.net (Bryan Henderson)
1996-10-04 20:07:10 +00:00
Marc G. Fournier
c61d606a15 Added dlfcn.h to dl.c in BSD44_derived port 1996-10-03 22:41:42 +00:00
Bruce Momjian
aefb294e13 Added restriction to tables vacuum'able.
Added NOTICE messages for bad table names.
1996-10-03 20:11:41 +00:00
Bruce Momjian
487e91484d Added chown to Makefile to set files to Postgres user.
Does not display and generates no error messages on failure.
1996-10-03 20:09:48 +00:00
Bruce Momjian
f5316239b8 Moved them. 1996-10-03 17:27:01 +00:00
Bruce Momjian
4bec96f16f Brought psql help up to date with syntax and manual. 1996-10-03 15:46:31 +00:00
Bruce Momjian
75e2cbcec3 New vacuum option. 1996-10-03 04:20:41 +00:00
Bruce Momjian
fedb734df9 Fixes extra space in printing. 1996-10-03 04:20:11 +00:00
Bruce Momjian
267ef0a642 Allow vacuum to run for only one table. Fixes allocation bug. 1996-10-03 04:19:29 +00:00
Bruce Momjian
dbc268ca15 Fixed file to properly do SEMUN for BSDI.
Grouped some PORTNAME's for SEMUN.
1996-10-03 01:14:37 +00:00
Bruce Momjian
a14bf40b88 Added new single-letter options to initdb.sh.
Removed long-option names that used ${#} shell feature which
was a compatability problem.
1996-10-03 00:23:42 +00:00
Marc G. Fournier
67e8736348 change stdout to fout
Submitted by: Carsten Heyl <heyl@nads.de>
1996-10-02 21:38:35 +00:00
Marc G. Fournier
0fadfc00ad Added NEED_UNION_SEMUN to config.h 1996-10-02 20:42:20 +00:00
Marc G. Fournier
22ef6d06fc Moved whether to define union semun from include/storage/ipc.h to
a define in include/config.h
1996-10-02 20:40:17 +00:00
Bruce Momjian
8f7756d796 palloc() finfo memory. From Kurt. 1996-09-26 16:29:05 +00:00
Bruce Momjian
adc98c0b35 Fix cluster finfo problem Kurt reported. 1996-09-26 15:43:35 +00:00
Bruce Momjian
2baf2150e9 Fixed YACC depenencies and 'make clean' now cleans totally. 1996-09-26 15:40:45 +00:00
Bruce Momjian
f8a84c947a This should cause 'make clean' to clean up bki files. Looks like a typo. 1996-09-26 04:22:49 +00:00
Bruce Momjian
deaaecdf2e Prevents possible packet loss from SIGCHLD. 1996-09-26 03:17:44 +00:00
Bruce Momjian
fd067981be Fix location of include files to match postgres.h includes. 1996-09-25 19:37:31 +00:00
Bruce Momjian
0d83b86720 Changed gawk to awk. 1996-09-25 19:24:58 +00:00
Marc G. Fournier
b12fb0e6b5 Patch for:
#     _fUnKy_POSTPORT_sTuFf_    -  port to run the postmaster on

Submitted by: D'Arcy
1996-09-24 01:57:01 +00:00
Marc G. Fournier
4ca1e1300c Change the comments pertaining to Makefile.custom
Submitted by: darcy@druid.druid.com (D'Arcy J.M. Cain)
1996-09-23 18:17:42 +00:00
Marc G. Fournier
87799e38f1 Prototype setMaxOid()
Submitted by: Bruce
1996-09-23 18:15:41 +00:00
Marc G. Fournier
afcbce5c22 CFLAGS +- -I... got messed by one of Bryan's patches
Fix Submitted by: Bryan himself :)
1996-09-23 18:14:08 +00:00
Marc G. Fournier
0da293f868 Fix for using Makefile.custom
Suggested/Submitted by: darcy@druid.druid.com
Cleaner Method Submitted by: Bryan Henderson <bryanh@giraffe.netgate.net>
1996-09-23 08:43:40 +00:00
Marc G. Fournier
9c6135fb15 From: Bruce Momjian <maillist@candle.pha.pa.us>
To: Postgres95-development <pg95-dev@ki.net>
Subject: [PG95-DEV] postgres.h patch

This removes the parameters from the func_ptr prototype in postgres.h in
2.0.
1996-09-23 08:38:45 +00:00
Marc G. Fournier
32620c222e From: Bruce Momjian <maillist@candle.pha.pa.us>
To: Postgres95-development <pg95-dev@ki.net>
Subject: [PG95-DEV] Makefile.global patch

Can we apply the following patch to make EUROPEAN_DATES consistent with
other parameters?
1996-09-23 08:37:41 +00:00
Marc G. Fournier
3bf2b361f0 Date: Sun, 22 Sep 1996 13:47:39 -0400 (EDT)
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: Postgres95-development <pg95-dev@ki.net>
Subject: [PG95-DEV] 2.0 patch for fastgetattr
1996-09-23 08:36:39 +00:00
Marc G. Fournier
d00f621d7b diff -ru ../../../orig/postgres95/src/backend/utils/adt/varlena.c
./utils/adt/varlena.c
- --- ../../../orig/postgres95/src/backend/utils/adt/varlena.c    Mon Jul 22
23:56:04 1996
+++ ./utils/adt/varlena.c       Tue Sep 17 15:12:55 1996
@@ -166,7 +166,7 @@

     if (inputText == NULL)
        return(NULL);
- -    len = strlen(inputText) + VARHDRSZ;
+    len = strlen(inputText) + VARHDRSZ + 1 /* terminating 0 */;
     result = (struct varlena *) palloc(len);
     VARSIZE(result) = len;
     memmove(VARDATA(result), inputText, len - VARHDRSZ);


Submitted by: skimo@breughel.ufsia.ac.be (Sven Verdoolaege)
1996-09-23 08:31:01 +00:00
Marc G. Fournier
fb7f8e7655 diff -ru ../../../orig/postgres95/src/backend/libpq/be-fsstubs.c
./libpq/be-fsstubs.c
- --- ../../../orig/postgres95/src/backend/libpq/be-fsstubs.c     Tue Jul  9
08:21:30 1996
+++ ./libpq/be-fsstubs.c        Tue Sep 17 15:30:09 1996
@@ -241,7 +241,7 @@
      */
     fd = open(VARDATA(filename), O_RDONLY, 0666);
     if (fd < 0)  {   /* error */
- -       elog(WARN, "lo_import: can't open unix file\"%s\"\n", filename);
+       elog(WARN, "lo_import: can't open unix file \"%s\"\n",
VARDATA(filename));
     }

     /*


Submited by: skimo@breughel.ufsia.ac.be (Sven Verdoolaege)
1996-09-23 08:29:52 +00:00
Marc G. Fournier
ff4d0d435e Here's a patch that I discussed recently on pg95-dev that changes the
way one creates a database system.  Parts that were in "make install"
are not either in "make all" or initdb.  Nothing goes in the PGDATA
directory besides user data.  Creating multiple database systems is
easier.

In addition to applying the patch, it is necessary to move the file
libpq/pg_hba to backend/libpq/pg_hba.sample.

Submitted by: Bryan Henderson <bryanh@giraffe.netgate.net>
1996-09-23 08:24:13 +00:00
Marc G. Fournier
e7c3adcd94 *** 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:30:52 +00:00
Marc G. Fournier
5774d080a7 Turned off EUROPEAN_DATES as default...
Pointed out by Bruce
1996-09-21 19:12:11 +00:00
Marc G. Fournier
7efc8ef1a1 |For starters, here's a small patch that removes a compiler warning in that
|regex stuff on Linux.
|
|--
|Bryan Henderson                                    Phone 408-227-6803
|San Jose, California
|
1996-09-21 06:31:13 +00:00
Marc G. Fournier
ee420c049f |This fixes the bug introduced yesterday that causes "not found" errors
|with gram.c and parser.h.
|
|--
|Bryan Henderson                                    Phone 408-227-6803
|San Jose, California
|
1996-09-21 06:29:09 +00:00
Marc G. Fournier
83298ee312 Nothing patched...just testing something with CVS... 1996-09-21 06:27:11 +00:00
Marc G. Fournier
04b55fc4a4 Patches to make POSTPORT changes in scripts
Originally submitted by: ernst.molitor@uni-bonn.de
resubmitted by: D'Arcy Cain
1996-09-21 06:24:41 +00:00
Marc G. Fournier
1a003fbcc2 Various patches from Bryan that *should* clean up the compile problems
ppl are seeing with v2.0
1996-09-20 08:34:39 +00:00
Marc G. Fournier
985acb8ea0 Add the regex include files to the repository...
In my cvs source tree, tihs directory existed, which is why it compiled
on my system, but nobody elses...
1996-09-20 05:29:31 +00:00
Marc G. Fournier
3c237e7347 I have two small patches which correct some very obscure bug in the parser
of the array constants and in one of the loadable modules I posted some time
ago.

Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1996-09-19 20:05:59 +00:00
Marc G. Fournier
8594ade7b0 Another small change. Added the void keyword to an empty arg list.
Submitted by: darcy@druid.druid.com (D'Arcy J.M. Cain)
1996-09-19 20:02:53 +00:00
Marc G. Fournier
b19b90d706 Just a small change to flesh out the func_ptr typedef declaration.
Submitted by: darcy@druid.druid.com (D'Arcy J.M. Cain)
1996-09-19 20:01:40 +00:00
Marc G. Fournier
3023dc6af0 A few changes to cleanup the code.
- Added the header access/heapam.h.
  - Changed all instances of "length" to "data_length" to quiet
    the compiler.
  - initialized a few variables.  The compiler couldn't see that
    the code guaranteed that these would be initialized before
    being dereferenced.  If anyone wants to check my work follow
    the usage of these variables and make sure that this true
    and wasn't actually a bug in the original code.
  - added a missing break statement to a default case.  This
    was a benign error but bad style.
  - layed out heap_sysattrlen differently.  I think this way
    makes the structure of the code crystal clear.  There should
    be no actual difference in the actual behaviour of the code.

Submitted by: darcy@druid.druid.com (D'Arcy J.M. Cain)
1996-09-19 20:00:37 +00:00
Marc G. Fournier
efebd7b7aa Cleanup patch of pg_version
Submitted by:  darcy@druid.druid.com (D'Arcy J.M. Cain)
1996-09-19 19:58:27 +00:00
Marc G. Fournier
ea8adfc435 Added querylimit patch...
Submitted by:  Massimo Dal Zotto <dz@cs.unitn.it>
1996-09-19 19:57:18 +00:00
Marc G. Fournier
aceac3a927 Fix for pg_log bug
Submitted by: "Vadim B. Mikheev" <vadim@sable.krasnoyarsk.su>
1996-09-19 19:50:48 +00:00
Marc G. Fournier
0318f227ac Add missing includes to silence compile
Submitted by: D'Arcy Cain
1996-09-16 06:34:40 +00:00
Marc G. Fournier
95251f458c Various standardizations and fixes submitted by D'Arcy Cain
NOTE: Makefile.custom is commented out, since it isn't there by default.
      If you read the section telling you about it to know to create it,
      you can uncomment it while you are there ...
1996-09-16 06:32:25 +00:00
Marc G. Fournier
40aade2c06 At Andrew's suggestion, upgrade the Version numbers to reflect the
current state of development...namely, we are on 2.0

NOTE:

BTW, the is also a check in postmaster which won't let you use an older
version of the database by checking the version number. The version number
of a database is in data/PG_VERSION (a plain ASCII file).

				- Andrew
1996-09-16 06:11:44 +00:00
Marc G. Fournier
f589ca6800 The following diffs remove the various definitions of dupstr() and replace
all the calls with strdup.

Submitted by: darcy@druid.druid.com (D'Arcy J.M. Cain)
1996-09-16 06:06:17 +00:00
Marc G. Fournier
24f0012268 I have made some corrections to my previous patches for retrieving array
attributes as tcl arrays.  The previous code had problems with some chars
used as delimiter by Tcl.  The new code should be more robust.

By: Massimo Dal Zotto <dz@cs.unitn.it>
1996-09-16 05:54:53 +00:00
Marc G. Fournier
33dccad831 enable PQ_NOTIFY_PATCH in config.h 1996-09-16 05:52:51 +00:00
Marc G. Fournier
bbebcb125e Fixes:
Async notifies received while a backend is in the middle of a begin/end
transaction block are lost by libpq when the final end command is issued.

The bug is in the routine PQexec of libpq. The routine throws away any
message from the backend when a message of type 'C' is received. This
type of message is sent when the result of a portal query command with
no tuples is returned. Unfortunately this is the case of the end command.
As all async notification are sent only when the transaction is finished,
if they are received in the middle of a transaction they are lost in the
libpq library. I added some tracing code to PQexec and this is the output:

Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1996-09-16 05:50:46 +00:00
Marc G. Fournier
e3b41d40fa More code cleanups from "Kurt J. Lidl" <lidl@va.pubnix.com> 1996-09-16 05:40:31 +00:00
Marc G. Fournier
df6ca83a5b Enable FUNC_UTIL_PATCH by default 1996-09-16 05:39:04 +00:00
Marc G. Fournier
906651f663 There is a bug in the function executor. The backend crashes while trying to
execute an sql function containing an utility command (create, notify, ...).
The bug is part in the planner, which returns a number of plans different
than the number of commands if there are utility commands in the query, and
in part in the function executor which assumes that all commands are normal
query commands and causes a SIGSEGV trying to execute commands without plan.

Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1996-09-16 05:36:38 +00:00
Marc G. Fournier
475493130d |Subject: Postgres patch: Assert attribute type match
|
|Here's a patch for Version 2 only.  It just adds an Assert to catch some
|inconsistencies in the catalog classes.
|
|--
|Bryan Henderson                                    Phone 408-227-6803
|San Jose, California
|
1996-09-16 05:33:20 +00:00
Marc G. Fournier
c5dd292007 Add use of INDEXSCAN_PATCH to config.h instead of putting it in Makefile.global 1996-09-10 06:51:28 +00:00
Marc G. Fournier
796f78998e Fixes:
The problem is that the function arguments are not considered as possible key
candidates for index scan and so only a sequential scan is possible inside
the body of a function.  I have therefore made some patches to the optimizer
so that indices are now used also by functions.  I have also moved the plan
debug message from pg_eval to pg_plan so that it is printed also for plans
genereated for function execution.  I had also to add an index rescan to the
executor because it ignored the parameters set in the execution state, they
were flagged as runtime variables in ExecInitIndexScan but then never used
by the executor so that the scan were always done with any key=1. Very odd.
This means that an index rescan is now done twice for each function execution
which uses an index, the first time when the index scan is initialized and
the second when the actual function arguments are finally available for the
execution.  I don't know what is the cost of an double index scan but I
suppose it is anyway less than the cost of a full sequential scan, at leat
for large tables. This is my patch, you must also add -DINDEXSCAN_PATCH in
Makefile.global to enable the changes.

Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1996-09-10 06:48:52 +00:00
Marc G. Fournier
f2f53aee0f Fixes:
The comparison routines for text and char data type give incorrect results
if the input data contains characters greater than 127.  As these routines
perform the comparison using signed char variables all character codes
greater than 127 are interpreted as less than 0.  These codes are used to
encode the iso8859 char sets.
The other text-like data types seem to work as expected as they use unsigned
chars in comparisons.


Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1996-09-10 06:41:38 +00:00
Marc G. Fournier
1ba34d91fc Cleaned up a spurious '-' ...
Pointed out by: ernst.molitor@uni-bonn.de
1996-09-10 06:23:46 +00:00
Marc G. Fournier
28fad34c7b modifications required to reflect centralized include files 1996-08-28 23:02:43 +00:00
Marc G. Fournier
4978d3f4bb modifications required to reflect centralized include files 1996-08-28 22:50:24 +00:00
Marc G. Fournier
870be9fa8e Clean up th ecompile process by centralizing the include files
- code compile tested, but due to a yet unresolved problem with
          parse.h's creation, compile not completed...
1996-08-28 07:27:54 +00:00
Marc G. Fournier
907c884fe8 Went back one directory too far for the -I include 1996-08-28 02:18:00 +00:00
Marc G. Fournier
f634c14c9e Path to pg_proc.h to create fmgrtab.c change to include/catalog 1996-08-28 02:13:10 +00:00
Marc G. Fournier
1054097464 More cleanups of the include files
- centralizing to simplify the -I's required to compile
1996-08-28 01:59:28 +00:00
Marc G. Fournier
ca405ae4bf Moved the include files to src/include/regex 1996-08-28 01:55:44 +00:00
Marc G. Fournier
5c0d6ccdbf Redundant -I pointer to port/<portname> 1996-08-28 01:50:01 +00:00
Marc G. Fournier
ad5a3141a2 c.h is included in postgres.h already 1996-08-28 01:23:59 +00:00
Marc G. Fournier
b8a0bb68c9 Should finish cleaning out the machine.h includes 1996-08-27 22:21:34 +00:00
Marc G. Fournier
6196646291 Remove include of machine.h 1996-08-27 22:20:28 +00:00
Marc G. Fournier
3c0f8ed4ae Remove all traces of machine.h and redundant calls to c.h where
postgres.h already pulled in (postgres.h includes c.h)
1996-08-27 22:15:17 +00:00
Marc G. Fournier
a88b72ea39 #ifndef the include file like the rest, so that it doesn't get pulled
in twice...
1996-08-27 22:09:10 +00:00
Marc G. Fournier
54223de000 Oops, win32 does have one more thing in its machine.h...move that
define to config.h
1996-08-27 22:07:59 +00:00
Marc G. Fournier
3a606407c7 We have a machine.h for each platform just because of BLCKSZ, and every
platform with a machine.h has the same BLCKSZ?

Consolidate machine.h into config.h
1996-08-27 22:06:30 +00:00
Marc G. Fournier
eadf5dc754 #include "postgres.h" exists in most .c files in system, so adding
#include "config.h" here will (should?) ensure that any platform
dependencies defined in config.h should be reflected in all .c files...
1996-08-27 22:00:21 +00:00
Marc G. Fournier
5a8820efcd Moved from backend/access to include/access 1996-08-27 21:50:29 +00:00
Marc G. Fournier
9247b29228 The use of include files is a mess...alot of redundancy, it seems...
First Step: Centralize them under on src/include hierarchy
1996-08-27 21:49:14 +00:00
Marc G. Fournier
e1f31a2bb6 added #include "config.h" for ESCAPE_PATCH define 1996-08-27 07:42:29 +00:00
Marc G. Fournier
43eeb64688 Removed -DESCAPE_PATCH ... moved to include/config.h 1996-08-27 07:41:17 +00:00
Marc G. Fournier
321b8c80fd At this rate, maybe next year sometime I'll get this done...
Goals: reduce the difficulty of porting from platform to platform,
       release to release, but moving as much as possible into config.h
1996-08-27 07:32:33 +00:00
Marc G. Fournier
e733befeed One file at a time, one directory after the other...this is going
to be one helluva chore to clean up...
1996-08-27 07:30:55 +00:00
Marc G. Fournier
849292a188 first attempt at centralizing config information for ports 1996-08-27 06:56:08 +00:00
Marc G. Fournier
c028568217 first pass...move some of the "Port" dependencies to src/include/config.h 1996-08-27 06:55:28 +00:00
Marc G. Fournier
672aec6ce3 Reduce -DPORTNAME_$(PORTNAME) down to just -D$(PORTNAME) 1996-08-27 06:52:34 +00:00