Commit Graph

558 Commits

Author SHA1 Message Date
Marc G. Fournier
64836996f9 Minor change to file point out by Andrew 1997-01-16 16:13:40 +00:00
Bruce Momjian
3a02ccfa1d Change EXPLAIN options to just use VERBOSE. 1997-01-16 14:56:59 +00:00
Vadim B. Mikheev
b00c2c1d3f FlushLocalBuffer () releases buffer only if required
by caller.
1997-01-16 08:13:14 +00:00
Vadim B. Mikheev
eb08b3ce4f No more LateWrite, but there is WriteMode;
SetBufferWriteMode () added;
FlushBuffer () fixed: now directly calls smgrflush () and
	releases buffer only if required by caller.
1997-01-16 08:11:41 +00:00
Vadim B. Mikheev
1c297d429e No more LateWrite. 1997-01-16 08:04:30 +00:00
Vadim B. Mikheev
cbc7af81f3 VariableRelationPutNextXid () now flushes variable relation
after writing next free XID.
1997-01-16 07:59:11 +00:00
Bryan Henderson
9e41af2e74 Add inet_aton() prototype. 1997-01-16 06:32:17 +00:00
Vadim B. Mikheev
3677e86f7f textin fixed: no more zero-byte (thanks, Erich) 1997-01-16 03:53:51 +00:00
Marc G. Fournier
f02bd93350 Added postgres.h include to quiet down the HPUX ports...
POinted out by: Martin S. Utesch <utesch@aut.tu-freiberg.de>
1997-01-15 08:21:14 +00:00
Bryan Henderson
05b0f22900 Eliminate dupliclate definition of external variables reldesc and DataDir.
Some compilers recognize this error.
1997-01-14 08:05:36 +00:00
Vadim B. Mikheev
2ca05fe45d ReleaseTmpRelBuffers is ReleaseRelationBuffers now. 1997-01-14 05:40:45 +00:00
Vadim B. Mikheev
791e9973ab heap_destroy () releases dirty buffers of a relation to be
destroyed.
1997-01-14 05:38:23 +00:00
Bruce Momjian
3a646df4c0 Remove CFLAGS_SL from lib/Makefile 1997-01-14 02:35:34 +00:00
Bruce Momjian
42efa28cf7 There are two prototypes for inet_aton, one in include/inet_aton.h, and
another one in Solaris' port-protos.h.

The following patch will bring inet_aton's prototype into scope for
Ultrix to silence a compilation warning.

If the intention is to have inet_aton's prototype in its own header
filer, the declaration in Solaris' port-protos.h should be removed.
If the declaration in port-protos.h is deemed to be the correct
place, a declaration should be added in Ultrix' port-protos.h

regards
Erik Bertelsen
1997-01-14 01:56:44 +00:00
Bruce Momjian
e3c4ac15d3 Another compilation error has surfaced on Ultrix. In spin.c, sem.h must be
included after storage/ipc.h like other similar cases that were changed
recently.

This one has popped up during the last few days.

My sources are sup'ed today, 13. jan 1996.

regards
Erik Bertelsen.
1997-01-14 01:53:11 +00:00
Bruce Momjian
ed3db60321 Fix typo in findstring use. 1997-01-13 16:47:52 +00:00
Bryan Henderson
6ece8a8d0b Part of patch to make a working nextstep port. 1997-01-13 03:54:48 +00:00
Bruce Momjian
0d3bf78e0b Added VERBOSE option to vacuum command. 1997-01-13 03:45:33 +00:00
Bryan Henderson
2de3d96f69 Add nextstep port, courtesy of Ovidiu Predescu. 1997-01-13 01:26:29 +00:00
Marc G. Fournier
ef228cb170 From: Keith Parks <emkxp01@mtcc.demon.co.uk>
OK, The votes are in for the NOFILES limit.

With the exception of Next, for which I've not yet heard, all supported platforms
seem to have the sysconf() call.


port           supported	default	Source.
aix            yes		2000	darrenk@insightdist.com
alpha          yes		4096	mjl@wwx.vip.at
BSD44_derived  yes		64	scrappy@hub.org
bsdi           yes		???	maillist@candle.pha.pa.us
dgux           yes		???	geek@andrew.cmu.edu
hpux           yes		60	emkxp01@mtcc.demon.co.uk
i386_solaris   yes		64	emkxp01@mtcc.demon.co.uk
irix5          yes		200	martin@biochem.uc.ac.uk
linux          yes		256	emkxp01@mtcc.demon.co.uk
next           ????		???
sparc_solaris  yes		64	emkxp01@mtcc.demon.co.uk
sunos4         yes		64	emkxp01@mtcc.demon.co.uk
svr4           yes		64	chicks@chicks.net
ultrix4        yes		64	erik@sockdev.uni-c.dk

So here's a patch that I think will do the job.
(I assume Next will have sysconf() but if not just add MISSING_SYSCONF to
 the config.h file )

Thanks,
Keith.
1997-01-13 01:25:29 +00:00
Bruce Momjian
2595785b9b Shared library cleanup for -fpic. 1997-01-12 04:25:23 +00:00
Bruce Momjian
a5dd06f763 include sem.h added, include string.h neede, from Erik Bertelsen for Ultrix 1997-01-10 20:19:49 +00:00
Bruce Momjian
63b22d8aa9 cleanup for LINUX_ELF 1997-01-10 18:55:24 +00:00
Bruce Momjian
37c168f6ba timeb.h only used when not using POSIX_TIME 1997-01-10 18:22:41 +00:00
Bruce Momjian
59dcac1e5d Makefile's -fpic only for gcc 1997-01-10 18:19:02 +00:00
Bruce Momjian
a0d9bdd99b Massimo fix for non-existant file copy error. 1997-01-10 17:46:33 +00:00
Bruce Momjian
90ff767d14 I found the following bugs in the version 6.0 (dated 961229).
At least the first two should be fixed before the final release of 6.0.

1)      There is a mismatch between the type declared in the catalog for
        the input/output attributes of pg_type and the actual type of
        values stored in the table.  The type of typinput, typoutput,
        typsend and typreceive are declared oid (26) while the values are
        regproc (24).  The error was there also in previous versions but
        nobody noticed it until an Assert has been added in ExecEvalVar.
        The effect is that it is now impossible to replace the typoutput
        of existing data types with new procs.

2)      The identd hba fails after the first time because the data read
        from the identd socket is not zero-terminated and strlen reports
        an incorrect length if the stack contains garbage, which usually
        happens after the first connection has been made.

3)      The new initdb wants to create itself the data directory. This
        implies that the parent directory must be writable by postgres and
        this may not always be desirable.  A better solution would be to
        allow the directory to be created by root and then filled by initdb.
        It would also nice to have some reasonable default for PGLIB and
        PGDATA like the previous version did.  This applies also to the
        postmaster executable.
1997-01-10 17:40:07 +00:00
Vadim B. Mikheev
daec84f09d Fixed (I hope) unique btree index implementation. 1997-01-10 10:06:20 +00:00
Vadim B. Mikheev
c6a605705c index_insert has now HeapRelation as last param (for unique index
implementation).
1997-01-10 10:00:39 +00:00
Vadim B. Mikheev
f48936e8ef index_insert has now HeapRelation as last param (for unique index
implementation).
1997-01-10 09:51:40 +00:00
Vadim B. Mikheev
675457d6ab index_insert has now HeapRelation as last param (for
unique index implementation).
1997-01-10 09:46:33 +00:00
Vadim B. Mikheev
f91b26a5da #include <postgres.h> moved upper 1997-01-09 03:38:14 +00:00
Vadim B. Mikheev
ce5009f99b #include "postgres.h"
moved upper.
1997-01-08 10:33:46 +00:00
Bryan Henderson
3c4b21493d Use proper types so it compiles on DEC C89. Thanks Erik Bertelson. 1997-01-08 08:39:10 +00:00
Bryan Henderson
5e98c40129 Change the way ipc.h is included because sys/ipc.h on Ultrix is broken. 1997-01-08 08:33:07 +00:00
Bryan Henderson
e5ff0b930a Add include of port-protos.h so it works on Ultrix. Thanks Erik Bertelson. 1997-01-08 08:31:07 +00:00
Marc G. Fournier
151d484ca5 Minor changes for NeXT compile
Submitted by: Ovidiu Predescu <ovidiu@bx.logicnet.ro>
1997-01-06 00:20:13 +00:00
Marc G. Fournier
3d53b87369 More config.h syncing for limits.h 1997-01-06 00:15:26 +00:00
Marc G. Fournier
8ec5bd06b7 Add NeXT port submitted by: Ovidiu Predescu <ovidiu@bx.logicnet.ro> 1997-01-06 00:12:34 +00:00
Marc G. Fournier
1321fe1a81 Clean up 'if defined()' for header files... 1997-01-06 00:08:31 +00:00
Marc G. Fournier
8251ce7d10 final fix for shared library under BSD44_derived
Submitted by: "Martin J. Laubach" <mjl@wwx.vip.at>
1997-01-05 23:53:57 +00:00
Marc G. Fournier
3bfbe9a7fd Fixes:
First, this is because of dlopen() and dlsym() having a char *
in the system prototype.

Submitted by: "Martin J. Laubach" <mjl@wwx.vip.at>
1997-01-05 23:43:58 +00:00
Marc G. Fournier
d57d3626cb Just reviewed what I changed as far a dlopen/etc are concerned, and determined
that the "fix" is wrong...
1997-01-05 23:41:43 +00:00
Bryan Henderson
227015b08e Standardize all LDADD to LD_ADD. 1997-01-05 21:17:45 +00:00
Vadim B. Mikheev
068a4c53af Closing opened indices. 1997-01-05 10:58:15 +00:00
Vadim B. Mikheev
8fa5394c49 Releasing empty root page in _bt_endpoint () to avoid
buffer leak.
1997-01-05 10:56:36 +00:00
Marc G. Fournier
4f8db3eb4c FreeBSD doesn't require the dl{open,close,sym,error} functions, as they are
already included in the system libraries.

Used if !defined(__FreeBSD__) to single FreeBSD out from the other BSD44
derived OSs
1997-01-03 04:59:01 +00:00
Bruce Momjian
1a395b7256 ALTER TABLE (text) fix 1997-01-02 06:18:25 +00:00
Bruce Momjian
6da0055274 Fix for SELECT INTO ... GROUP/ORDER BY where table already exists unlink error. 1997-01-01 06:01:16 +00:00
Vadim B. Mikheev
7266928e77 Fixed realloc for increasing tempRels list. 1996-12-31 06:58:27 +00:00
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