Commit Graph

558 Commits

Author SHA1 Message Date
Vadim B. Mikheev
ae753b86b5 ReleaseTmpRelBuffers () releases buffers in LOCAL buffer pool now
(if rd_islocal is true).
1996-12-31 06:47:30 +00:00
Bruce Momjian
765dd2a4c0 explain change 1996-12-29 19:31:16 +00:00
Bruce Momjian
4415e481ef Improved EXPLAIN option handling. 1996-12-29 00:53:20 +00:00
Bruce Momjian
fd12c8f85e Fixed Assert check where ! should be !=. 1996-12-28 22:44:14 +00:00
Bruce Momjian
cb6cb7745d Here's the final set of patches to 6.0 (sup'd on 27/12/96) that allow a full
gmake of the code without interruption.

There's also some tidy-up of the MAXPATHLEN stuff based on the assumption that
all supported platforms have MAXPATHLEN defined in <sys/param.h>.

(The only unknowns for the above are AIX and IRIX5.)
1996-12-28 02:13:05 +00:00
Bryan Henderson
634b38aa86 Add asserts to check for file descriptor ring corruption. 1996-12-27 22:57:51 +00:00
Vadim B. Mikheev
4a5135c34e There was JMP_BUF defined in config.h. And SIGJMP_BUF later.
And now - JMP_BUF again. Is it enough, folks ?

Fixed again:
cc1: warnings being treated as errors
exc.c: In function 'ExcRaise':
exc.c:187: warning: passing arg 1 of 'Longjmp' from incompatible pointer type
gmake[3]: *** [exc.o] Error 1
1996-12-27 13:13:58 +00:00
Bruce Momjian
e8f43854ac pq/signal() portability patch. Also psql copy prompt fix. 1996-12-26 22:08:34 +00:00
Bruce Momjian
89b2807170 Added include files needed for getpid prototype.
Bruce Momjian
1996-12-26 17:50:26 +00:00
Bruce Momjian
d419e11cb6 Change %ud to %u
Darren King.
1996-12-26 17:49:56 +00:00
Bruce Momjian
0681513693 In file: .../src/backend/postmaster/postmaster.c I found 3 leaks and
probably a bug.
To find code added/modifyied, search "Fixed".

Gianluca Puggelli
1996-12-26 17:49:05 +00:00
Bruce Momjian
28a08fd4ac I have this annoying habit (among others) of putting
%ud in a printf format strings instead of just %u.

There were three occurances of this in catalog_utils.c,
two in parser.c and one in rewriteSupport.c in the oid
patch that I submitted and was applied.  They won't crash
anything, but the error messages will have a 'd' after the
Oid.  Annoying, but none are db-threatening.

Sorry about that folks...I'll be more careful in the future...

Darren King
1996-12-26 17:47:42 +00:00
Bruce Momjian
c5aaba2c34 In src/backend/catalog/pg_operator.c in OperatorDef, there
are three SearchSysCacheTuple(PRONAME,...) calls that use three
different macros to convert the typeId array of Oids.

Darren King
1996-12-26 17:46:07 +00:00
Bruce Momjian
df0eee9963 Removal of CppConcat from indexam.c.
As an example I sent a bug-report on 26 Nov to tell that the fix included
below is necessary to compile pg95-current on Ultrix with Digital's
standard C compiler c89. In fact I think that this fix is needed
for any C compiler sticking very close the standard, see my discussion
in the original bug report.

Erik Bertelsen
1996-12-26 17:44:46 +00:00
Bryan Henderson
d6c06feb18 Add cast to quiet compiler warning. 1996-12-23 08:39:27 +00:00
Bruce Momjian
4371756f16 Improve handling of semicolons ending statements. 1996-12-20 20:33:12 +00:00
Bruce Momjian
231e1e70d8 Rename parameter. 1996-12-20 20:31:31 +00:00
Marc G. Fournier
194ed4efe5 More patches/documentation from: Massimo Dal Zotto <dz@cs.unitn.it> 1996-12-19 05:01:17 +00:00
Marc G. Fournier
07c8d9f0f3 COPY_PATCH...
Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1996-12-19 04:58:24 +00:00
Marc G. Fournier
f0bcb1762d #ifdef ASYNC_DEBUG various sections of async.c
Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1996-12-19 04:54:56 +00:00
Bruce Momjian
db7a90f1d9 Make GROUP BY work with aliases, ORDER BY with column numbers 1996-12-17 01:53:43 +00:00
Bryan Henderson
ec105b6026 Put sys/types.h before sys/timeb.h so Ultrix compiles. 1996-12-16 03:34:52 +00:00
Bryan Henderson
fa9c0fff36 Remove __P macro usage so it compiles without cdefs.h. 1996-12-15 09:21:37 +00:00
Bryan Henderson
9fc7250d3a Make compile on AIX, Alpha OSF. Thanks Darren King, Igor Notanzon. 1996-12-15 09:05:53 +00:00
Vadim B. Mikheev
290d3b5198 Fix over fix: JMP_BUF gone away and we have SIGJMP_BUF now.
Excuse me.
1996-12-14 08:26:34 +00:00
Vadim B. Mikheev
4556a50cf8 Avoiding:
cc1: warnings being treated as errors
datum.c: In function `DatumGetSize':
datum.c:57: warning: unsigned value >= 0 is always 1
gmake[3]: *** [datum.o] Error 1

There was:
    if (byVal) {
        if (len >= 0 && len <= sizeof(Datum)) {

but len has type Size (unsigned int) and so now there is:
    if (byVal) {
        if (len <= sizeof(Datum)) {
1996-12-14 07:56:05 +00:00
Vadim B. Mikheev
14ad435294 const register ... --> register const ... 1996-12-14 06:08:14 +00:00
Vadim B. Mikheev
25eb9e2a66 Avoiding
cc1: warnings being treated as errors
exc.c: In function 'ExcRaise':
exc.c:186: warning: passing arg 1 of 'Longjmp' from incompatible pointer type
gmake[3]: *** [exc.o] Error 1

Now we have:
#if defined (JMP_BUF)
        longjmp(efp->context, 1);
#else
        siglongjmp(efp->context, 1);
#endif
1996-12-14 05:55:27 +00:00
Vadim B. Mikheev
02ba3cf871 Avoiding
cc1: warnings being treated as errors
transsup.c: In function `TransBlockGetLastTransactionIdStatus':
transsup.c:122: warning: unsigned value >= 0 is always 1
gmake[3]: *** [transsup.o] Error 1
...
1996-12-14 05:20:39 +00:00
Vadim B. Mikheev
b555822fed Unuseful tupDesc = CreateTupleDesc(attr_count, attr); in CopyFrom
is eliminated (now I can copy 2000000-table from file without memmory
exhausting).
1996-12-14 04:58:20 +00:00
Bruce Momjian
7af262d2a7 Require seimcolons between statements. 1996-12-11 22:55:53 +00:00
Bryan Henderson
7439ba64b1 Use "Oid" type where applicable and %ud instead of %d. Thanks Darren King. 1996-12-11 03:18:12 +00:00
Bruce Momjian
9b41da6ce4 Rename postgres95 to PostgreSQL. Add comment for SELECT NULL 1996-12-11 00:28:15 +00:00
Bryan Henderson
b36e3042e7 Add comments describing interface to heap_getattr(). 1996-12-09 01:22:17 +00:00
Bruce Momjian
8cedf57eb1 Reduce printing from debug level 2 ande layout change. 1996-12-07 04:39:38 +00:00
Bruce Momjian
2e20099e32 Reduce printing from deub level 2 ande layout change. 1996-12-07 04:38:40 +00:00
Bruce Momjian
c0941ab7f0 Remove Dan's fix of SELECT NULL to fix INSERT NULL. 1996-12-07 04:38:11 +00:00
Bruce Momjian
7f8b8b9e42 Fix for SELECT NULL. 1996-12-07 04:37:06 +00:00
Bruce Momjian
c90c058bf0 Fix from Jan agreed with by Massimo. 1996-12-07 04:36:38 +00:00
Vadim B. Mikheev
4e064c0560 _bt_updateitem is returned in code, but works only if sizes of keys
are equal.
1996-12-06 09:45:30 +00:00
Vadim B. Mikheev
c3e10a4caf 1. _bt_compare fixed to work properly with new code in _bt_insertonpg
(old _bt_compare always returned >= 0 while comparing with P_HIKEY
   on root page - it breaks root page when _bt_insertonpg tries insert
   new minimal key into root page).
2. Fixed bug concerns "empty" pages: non-rightmost pages with only P_HIKEY
   present on it. Such pages appear after vacuum.
1996-12-06 09:41:45 +00:00
Bruce Momjian
64397b758f Remove duplicate patch for COUNT fix. 1996-12-04 14:23:16 +00:00
Bryan Henderson
9005a38bdb Change portname "sparc" to "sunos4" and change some portname dependencies to
feature dependencies.  Thanks Kurt J. Lidl.
1996-12-04 03:06:33 +00:00
Bruce Momjian
071797f539 Change tests to lowercase for esthetics. 1996-12-03 17:01:35 +00:00
Vadim B. Mikheev
e5fbe3017c pname=NULL -> pname="" (stringinfo.c:appendStringInfo doesn't like NULL). 1996-12-03 05:50:11 +00:00
Bruce Momjian
f2af019645 Make COUNT,SUM case insensitive. 1996-12-03 05:06:35 +00:00
Bruce Momjian
1eae8e1228 Fix compiler warning about unitialized variables. 1996-12-01 19:48:39 +00:00
Bruce Momjian
63df35e249 This patch changes quite a few instances of references of Oid's
as ints and longs.  Touches on quite a few function args as
well.  Most other files look ok as far as Oids go...still checking
though...

Since Oids are type'd as unsigned ints, they should prolly be used
with the %ud format string in elog and sprintf messages.  Not sure
what kind of strangeness that could produce.

Darren King
1996-11-30 18:07:02 +00:00
Bruce Momjian
f0a9e64afd As someone asked for this feature - patch for 1.09 follows.
Now You can do queries like

select sum(some_func(x)) from ...
select min(table1.x + table2.y) from table1, table2 where ...

and so on.

Vadim
1996-11-30 17:49:02 +00:00
Bruce Momjian
87352726b2 Change end-of-line comma to semicolon. 1996-11-30 17:47:07 +00:00
Bruce Momjian
2d7aacb052 Added BETWEEN and IN to grammar. Map != to <>. 1996-11-30 03:38:09 +00:00
Bruce Momjian
a3d773a693 Allow select oid,* from table. Allow * anywhere in target list. 1996-11-29 15:56:18 +00:00
Vadim B. Mikheev
03659a262e Added: dynamic re-moving page from list of pages usable for shrinking
if its free-space < min_tuple_len.
1996-11-29 10:27:59 +00:00
Bruce Momjian
316e81cf22 Fix for BSDI compile. 1996-11-29 04:49:46 +00:00
Bruce Momjian
ba876c150a Changed saved_relname size to save memory. 1996-11-28 05:46:08 +00:00
Vadim B. Mikheev
c7cba5780f Fix for "might be used uninitialized" warnings. 1996-11-28 04:37:38 +00:00
Vadim B. Mikheev
0667fd9491 TransactionIdIsInProgress is commented out 1996-11-27 15:15:54 +00:00
Bruce Momjian
79b1a0ff35 Allow all empty queries to return EMPTY. 1996-11-27 13:47:05 +00:00
Bryan Henderson
9c0afeabb7 More stuff to make it compile on various ports. 1996-11-27 08:16:44 +00:00
Vadim B. Mikheev
f0c5a6c614 Shrinking and other things. 1996-11-27 07:27:20 +00:00
Vadim B. Mikheev
3385497228 New smgrtruncate smgr' interface func. 1996-11-27 07:25:52 +00:00
Vadim B. Mikheev
a2a33e1344 New mdtruncate() func for single segment relations (< 2Gb). 1996-11-27 07:24:02 +00:00
Vadim B. Mikheev
3643248ae2 TransactionIdIsInProgress is here now and gives quality answer
by scanning PROC structures of all running backend.
1996-11-27 07:20:07 +00:00
Vadim B. Mikheev
47312ec134 Setting MyProc->xid to InvalidTransactionId while creating
PROC structure (it's for new TransactionIdIsInProgress func).
1996-11-27 07:17:48 +00:00
Vadim B. Mikheev
713b65e19c Setting MyProc->xid to current transaction' id in StartTransaction
and to InvalidTransactionId in CommitTransaction & AbortTransaction
(it's for new TransactionIdIsInProgress func).
1996-11-27 07:14:51 +00:00
Vadim B. Mikheev
1db76d708c TransactionIdIsInProgress moved to shmem.c 1996-11-27 07:10:59 +00:00
Bryan Henderson
46d58fba33 Make it compile on Ultrix. Thanks Erik Bertelson. 1996-11-26 03:20:35 +00:00
Bryan Henderson
02c0eb6549 Properly structure ProcedureNameIndexScan so it doesn't generate
"may be used before being set" warnings.
1996-11-26 02:45:05 +00:00
Bryan Henderson
46c4e6f626 Include fcntl.h, which is not automatically included by sys/file.h on all systems. 1996-11-25 06:33:51 +00:00
Bruce Momjian
6c2925b884 Prevent empty queries from crashing server. 1996-11-25 03:03:48 +00:00
Bryan Henderson
02db1f58cb Fix access through null pointer info->rule_action. Thanks Darren King. 1996-11-24 05:58:57 +00:00
Bryan Henderson
9602150a04 Fix syntax error: missing argument to elog(). Thanks Darren King. 1996-11-24 05:46:12 +00:00
Bryan Henderson
092c7a6be5 Typecasts, etc. to make compile work on AIX. Thanks Darren King.. 1996-11-24 04:44:24 +00:00
Bryan Henderson
d3f9d6ad4f Move include of signal.h inside pqsignal.h so it's always where it's needed. 1996-11-24 04:07:17 +00:00
Bryan Henderson
5c410fa0b9 First pass at getting shared libraries on AIX properly built. 1996-11-23 09:51:57 +00:00
Bryan Henderson
e67cc8a346 Fix bug: -D options implies -d option. 1996-11-22 04:32:41 +00:00
Vadim B. Mikheev
8c2f099ab5 Fix memory overhelding while forming index' result:
memory allocation for ItemPointerData of heap' tuple is useless
because of FormRetrieveIndexResult makes neccessary palloc.
1996-11-21 06:13:43 +00:00
Vadim B. Mikheev
5d7e44fc8e Fix memory overhelding while forming index' result:
memory allocation for ItemPointerData of heap' tuple is useless

because of FormRetrieveIndexResult makes neccessary palloc.
1996-11-21 06:06:52 +00:00
Vadim B. Mikheev
05b3b8613d Fix memory overhelding while forming index' result:
memory allocation for ItemPointerData of heap' tuple is useless
because of FormRetrieveIndexResult makes neccessary palloc.
1996-11-21 06:02:56 +00:00
Bruce Momjian
58802bf39a Can't add a keyword without making it a keyword. :-)
D'Arcy J.M. Cain                           |  Democracy is three wolves
1996-11-20 22:58:22 +00:00
Bruce Momjian
c4d6bda2c5 There is a bug in aclinsert3 in the code which update the acl arrays.
When an acl item is added or updated the new entry is deleted if it has no
permissions and the acl array is shrinked. This is is done by decrementing
the number of items without updating the corresponding array size.
The array with the incorrect size is later read by pg_aclcheck and the entry
count is used to allocate a new array while the array size is used to copy
the old one. This causes a memory corruption and a backend crash.
This happens only to normal user as the administrator bypasses acl checks.
Massimo Dal Zotto
1996-11-20 22:53:10 +00:00
Bruce Momjian
2abbf392bd Removed old Assert's used during development. 1996-11-19 05:06:39 +00:00
Bryan Henderson
13312a007d The routines in magic.c have moved to the more accessible version.c. 1996-11-19 02:55:37 +00:00
Bryan Henderson
e2a8163c40 Remove linux define of __USE_POSIX, which doesn't appear to do anything. 1996-11-18 02:26:57 +00:00
Bryan Henderson
b55d49f5fe Add comments about the diversity of signal functionality. Came from
Makefile.global.
1996-11-18 02:25:09 +00:00
Bryan Henderson
87f5fda6b9 Make port-specific link libraries defined for linking backend more global
so you can also link pgtclsh.
1996-11-18 02:23:41 +00:00
Bryan Henderson
bd57c3afe5 Quiet compiler warnings about missing prototypes in Linux's bitops.h. 1996-11-18 01:45:44 +00:00
Bruce Momjian
003b76f9ac Fix for error when viewing group access privs. 1996-11-17 04:26:59 +00:00
Bruce Momjian
4b130b2209 Fix for Alter TABLE add column varchar(). Was causing zero length. 1996-11-17 04:23:10 +00:00
Bryan Henderson
aef6163388 Remove old GetPGData reference that causes warning. 1996-11-16 09:03:44 +00:00
Bryan Henderson
7bf3bae1a4 Add #include <sys/types.h> so it works with Ultrix's in.h 1996-11-16 08:09:16 +00:00
Bruce Momjian
7085aba53c Remove quote removal. Moved to parser. 1996-11-15 18:38:55 +00:00
Bruce Momjian
36aaf2505d Correct permissions on lo_export(). Open up permissions. 1996-11-15 18:38:20 +00:00
Bruce Momjian
3f53311088 Fix quote/doublequote handling. 1996-11-15 18:37:37 +00:00
Bruce Momjian
b847d29785 Remove PERFECT_MEM
Unallocate opaque.
1996-11-15 18:37:10 +00:00
Bruce Momjian
f8e02c192a Unallocate opaque. 1996-11-15 18:36:31 +00:00
Marc G. Fournier
54c9905d6e Mulitple inclusion of sys/socket.h
Pointed out by: Erik Bertelsen <erik@sockdev.uni-c.dk>
1996-11-15 09:54:28 +00:00
Marc G. Fournier
8abc490181 Features added:
* Wrote max(date) and min(date) aggregates
* Wrote operator "-" for date; date - date yields number of days
  difference
* Wrote operator+(date,int) and operator-(date,int); the int is the
  number of days.  Each operator returns a new date.


By: Tom Tromey <tromey@creche.cygnus.com>
1996-11-14 21:39:14 +00:00
Marc G. Fournier
eedc75bfe1 Bring in Randy's NOROOT patch 1996-11-14 20:49:09 +00:00
Marc G. Fournier
2081153e69 Fix a comment...was going to fix the <sys/types.h> problem, but
Randy is submitting a more comprehensive patch :)
1996-11-14 20:27:06 +00:00
Marc G. Fournier
d84057db71 Couple of Ultrix4 related patches submited by:
Erik Bertelsen <erik@sockdev.uni-c.dk>
1996-11-14 20:08:58 +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
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
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
17befd6c69 Use new utils/version.c instead of backend/utils/init/magic.c. 1996-11-12 06:47:10 +00:00
Bruce Momjian
a157098f7c Fixed double pfree on opaque. 1996-11-11 14:02:10 +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
13d44b4aac Warning removal cleanup 1996-11-11 04:54:54 +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
9f1b6bf7db Add #include <unistd.h> to quiet compiler warning about missing getopt() declaratoin. 1996-11-10 01:37:48 +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
d7806dc5ee Make it find inet_aton.h so backend compiles on Solaris. 1996-11-10 00:38:38 +00:00
Bruce Momjian
a0990e1884 Makefile cleanup after reorganization 1996-11-09 06:24:51 +00:00
Bruce Momjian
c9c0e111b8 More compile cleanups 1996-11-08 20:46:33 +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
ad6ca0c3af Another patch to quiet the compiler from D'Arcy 1996-11-08 00:59:10 +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
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
b6e640f829 Make sure that #include <postgres.h> is included in fmgrtab.c 1996-11-06 10:22:13 +00:00
Marc G. Fournier
58a0150f64 More files cleaned out 1996-11-06 09:29:26 +00:00
Marc G. Fournier
83d93d437b Just a couple of small mods 1996-11-06 08:54:17 +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
9e3d4c43a7 Another directory cleaned up 1996-11-06 07:31:26 +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
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
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
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
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
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
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
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
Marc G. Fournier
0c960e7fc0 More include file cleanups 1996-11-03 08:17:38 +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
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
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
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
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
3a4c2888a1 Removal of bsdi_2_1 port. 1996-11-01 01:47:23 +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
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
0a761375e9 Move these files to ${SRCDIR}/include 1996-10-31 07:09:33 +00:00