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
7bfb924aea
Silence compiler warnings, fix error in complex compare function.
1997-01-05 21:20:34 +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
b5164666a3
someone added pg_listen and pg_notifies to libpgtcl. But first
...
these routines try to use the old pointer casting stuff to get
the connection id, second the notification hash table should
be part of the cliendData. Otherwise, one interpreter might
eat up the notifies for another one.
Please apply the patch below to the current 6.0 tree.
Submitted by: wieck@sapserv.debis.de
1997-01-03 18:48:31 +00:00
Bruce Momjian
461d22206f
documentation updating to 6.0 release
1997-01-03 06:08:21 +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
24632b0ee0
fix for previous fix
1997-01-02 07:07:32 +00:00
Bruce Momjian
6e2341a48e
psql paren. with \r fix.
1997-01-02 06:45:25 +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
Bryan Henderson
8fb0ac8898
Make error messages more explicit, PQtrace() output more readable.
1996-12-31 07:29:17 +00:00
Bryan Henderson
e2da92f1c3
Rename Makefile to GNUmakefile to catch people using other makes.
1996-12-31 07:26:27 +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
Bryan Henderson
9b94bcea21
Put $(CURSES_LIB) in Makefile.global to replace similar thing in psql/Makefile.
1996-12-30 23:19:48 +00:00
Bryan Henderson
7ab0ceb824
Check that PQendcopy succeeded. Issue error message if not.
1996-12-30 23:05:16 +00:00
Bruce Momjian
765dd2a4c0
explain change
1996-12-29 19:31:16 +00:00
Bruce Momjian
bf6fdeebb5
typo fix
1996-12-29 03:55:36 +00:00
Bruce Momjian
b0030c6c42
New EXPLAIN manual page.
1996-12-29 00:58:32 +00:00
Bruce Momjian
2d291ab093
Changed EXPLAIN option names.
1996-12-29 00:53:59 +00:00
Bruce Momjian
4415e481ef
Improved EXPLAIN option handling.
1996-12-29 00:53:20 +00:00
Bruce Momjian
e981bcb0c3
Fix expected regression output.
1996-12-28 23:07:54 +00:00
Bruce Momjian
8cc2eb66ec
Fixed errors in create statement.
1996-12-28 22:46:40 +00:00
Bruce Momjian
bbc0d47773
Fixed error where = should be ==.
1996-12-28 22:44:58 +00:00
Bruce Momjian
fd12c8f85e
Fixed Assert check where ! should be !=.
1996-12-28 22:44:14 +00:00
Bruce Momjian
221d7296aa
Here is a bug fix and some spelling changes for the complex number tutorial
...
code. I have also written a complete complex number package based on this
tutorial; I will submit this as a contribution soon. Is there a particular
format for contributed tar files? I have a C source file, two SQL files, and a
Makefile.
Thomas Lockhart
1996-12-28 02:22:12 +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
Bruce Momjian
d4dbfdb4c0
Patch for copy from stdin.
1996-12-28 01:57:13 +00:00
Bryan Henderson
15526ff0ac
Add messages to assist in problem diagnosis. Eliminate lines > 80 characters.
1996-12-27 23:12:57 +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
Bryan Henderson
645b587788
Remove use of "bool", which user program may not have defined. This .h file
...
gets included by libpq-fe.h, and thus is part of the API.
1996-12-26 23:28:27 +00:00
Bryan Henderson
af30fe7852
Remove use of "bool", which user program may not have defined.
1996-12-26 23:27:16 +00:00
Bruce Momjian
e8f43854ac
pq/signal() portability patch. Also psql copy prompt fix.
1996-12-26 22:08:34 +00:00
Bryan Henderson
7f00f11c01
Fix syntax of \copy in \? display.
1996-12-26 20:56:40 +00:00
Bruce Momjian
9643e8ba37
Added needed prototype.
...
Bruce Momjian
1996-12-26 17:53:40 +00:00
Bruce Momjian
0cb22cb7ef
Removal of unused CppConcat defines.
...
Bruce Momjian
1996-12-26 17:53:24 +00:00
Bruce Momjian
b1765f4637
Note the => changes to == after a connect and stays that way on subsequent
...
database changes.
To fix, apply the following patch:-
Keith Parks.
1996-12-26 17:52:46 +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
Bruce Momjian
0fde972e25
Added mention of CUSTOM_COPT to file.
1996-12-26 17:39:58 +00:00
Bryan Henderson
9b55904647
Clarify error message about trying to PQgetvalue() nonexistent row.
1996-12-24 09:03:16 +00:00
Bryan Henderson
ab90c18d12
Fix Solaris stuff so it compiles. Thanks Keith Parks.
1996-12-23 10:16:54 +00:00
Bryan Henderson
d9e10180ee
Add some quotes so it works on more shells.
1996-12-23 08:50:27 +00:00
Bryan Henderson
d6c06feb18
Add cast to quiet compiler warning.
1996-12-23 08:39:27 +00:00
Bruce Momjian
4540a8bd5c
Fix multiple "C" from backend.
1996-12-20 20:34:38 +00:00
Bruce Momjian
a952d67296
Remove NOTIFY_PATCH.
1996-12-20 20:33:46 +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
Bryan Henderson
64e45b0ebc
Make sure user is running GNU make.
1996-12-19 08:03:46 +00:00
Marc G. Fournier
56e8243d22
Add two new comments to pglibtcl...
...
From: Massimo Dal Zotto <dz@cs.unitn.it>
1996-12-19 05:02:51 +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
dc97a7b90e
Add various comments to explain #define's and add a few extra #define's
...
Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1996-12-19 04:56:35 +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
cbb131570e
if (settings->opt.fieldSep);
...
^ - deleted
free(settings->opt.fieldSep);
1996-12-14 08:20:18 +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
Bryan Henderson
255363f859
Clean up. Get rid of tabs and overly long lines.
1996-12-13 09:25:08 +00:00
Bruce Momjian
ea8b5196ff
Small regression and doc patch
1996-12-13 02:39:00 +00:00
Bruce Momjian
1b929d1749
Postgres95 to PostgreSQL.
1996-12-11 22:58:16 +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
7f36a2a718
Fix bug: libpq clients (which include libpq-fe.h) won't compile.
1996-12-10 07:05:12 +00:00
Bryan Henderson
2697c27923
sigjmp_buf/jmp_buf is backwards, so backend doesn't compile.
1996-12-10 07:04:22 +00:00
Bryan Henderson
7492fb165f
Fix bug: libpq clients (which include libpq-fe.h) won't compile.
...
Plus: sigjmp_buf/jmp_buf is backwards, so backend doesn't compile.
1996-12-10 07:03:43 +00:00
Bryan Henderson
41b3674754
Add empty "dep:" target.
1996-12-10 03:40:23 +00:00
Marc G. Fournier
0861594cb3
No change...just a test to make sure I didn't screw anything up
1996-12-10 03:03:36 +00:00
Bryan Henderson
9e60c1711d
Monitor has been obsoleted by psql.
1996-12-09 01:55:51 +00:00
Bryan Henderson
33edbdb59b
Remove include of libpq-fe.h. This file has nothing to do with libpq.
1996-12-09 01:24:53 +00:00
Bryan Henderson
79729c0e5e
Add comments defining "typelem" column of pg_type.
1996-12-09 01:23:51 +00:00
Bryan Henderson
b36e3042e7
Add comments describing interface to heap_getattr().
1996-12-09 01:22:17 +00:00
Bryan Henderson
6cfb12e0cf
Add CUSTOM_CC variable for Makefile.custom. Thanks Kurt Lidl.
1996-12-09 01:16:51 +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
Bryan Henderson
514d69bdbf
Remove #if defined(bsdi) define SIGJMP_BUF, per Kurt Lidl.
1996-12-03 00:11:07 +00:00
Bruce Momjian
58193362bd
Reduce regression diffs
1996-12-02 14:17:59 +00:00
Bruce Momjian
5f9bdb7641
Reduce regression diff size with timezone changes and cleanup.
1996-12-02 06:31:20 +00:00
Bruce Momjian
7980b8a5cc
Fix for inclusion of new prompt output.
1996-12-01 20:28:39 +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
d3e0860d25
Aded mention that != maps to <>.
1996-11-30 04:56:18 +00:00
Bruce Momjian
440279e803
Add indicator for in quote or in query to prompt.
1996-11-30 03:41:20 +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
a962c6128f
vrl_min_tlen added to VRelListData.
1996-11-29 10:29:45 +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
Bryan Henderson
7b4426eaea
Throw some double quotes on the pile!
1996-11-29 06:24:14 +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
Bryan Henderson
f0e7004d29
Make strdup work for Ultrix. Thanks Erik Bertelsen
1996-11-28 03:32:18 +00:00
Vadim B. Mikheev
0667fd9491
TransactionIdIsInProgress is commented out
1996-11-27 15:15:54 +00:00
Bruce Momjian
6450bef6ec
Convert ' to " in dates. Update example code to show empty query as "".
1996-11-27 13:49:46 +00:00
Bruce Momjian
c9ec45062a
Remove unused define's.
1996-11-27 13:48:58 +00:00
Bruce Momjian
134c35c761
no change
1996-11-27 13:48:23 +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
a38365e0eb
New structures for new vacuum.
1996-11-27 07:35:06 +00:00
Vadim B. Mikheev
948720ee94
New mdtruncate() & smgrtruncate() funcs.
1996-11-27 07:33:42 +00:00
Vadim B. Mikheev
b41aa3903c
TransactionIdIsInProgress moved to shmem.c
1996-11-27 07:32:10 +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
89c7e18b3f
Forgot in yesterday's Ultrix compile work.
1996-11-27 01:46:52 +00:00
Bryan Henderson
8cfe27dff0
OK, I think I've got the postconfig thing right now.
1996-11-26 08:12:39 +00:00
Bryan Henderson
93f722536f
Whoops, redo Ultrix patch so the other ports still compile.
1996-11-26 07:39:11 +00:00
Bryan Henderson
c118543186
Fix double-colon syntax error on fe-lobj.o.
1996-11-26 06:33:18 +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
bf14017220
Put in #include <fcntl.h> for those systems that don't have it included by something else.
1996-11-26 01:17:56 +00:00
Bryan Henderson
f93f780269
-Werror fixes from D'Arcy.
1996-11-26 01:14:38 +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
Bryan Henderson
1d84088f50
Go back to $(postconfig...) from $(exec postconfig...) so it works on non-bash.
1996-11-25 05:51:50 +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
7e499bd112
Add dep: rule.
1996-11-24 03:55:19 +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
45f1d32bf1
Eliminate pesky "postconfig not found" message.
1996-11-23 09:42:51 +00:00
Bruce Momjian
eda3771290
Fix for \g strdup error.
1996-11-22 06:45:14 +00:00
Bryan Henderson
25fe3c7098
Include ctype.h to fix Kurt Lidl's compile problem.
1996-11-22 04:43:48 +00:00
Bryan Henderson
4da9c597af
Include stdio.h to fix Craig Anderson's compile problem.
1996-11-22 04:39:53 +00:00
Bryan Henderson
86ab9a5118
Fix bug: No -D option to postgres
1996-11-22 04:33:34 +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
cd743f8388
Otherwise "gmake install" fails.
...
D'Arcy J.M. Cain | Democracy is three wolves
1996-11-20 22:53:49 +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
8299e75577
following is a little fix for libpq.
...
PQexec handles the possibility of multiple results from one
query by simply submitting an empty query after the first
result and waiting for an 'I' message.
Rules can generate errors with transaction abort after the
first 'C' message was recieved (e.g. if a C-language function
used in a rule calls elog(WARN, ...)). Thus we have to look
for.
Jan(wieck@sapserv.debis.de )
1996-11-20 22:35:19 +00:00
Bruce Momjian
6399c74f17
Fix \g filename. Free allocated memory and don't use memory that has
...
been freed.
1996-11-20 22:34:36 +00:00
Bruce Momjian
9d45f22e38
Here is the patch for pg_dump not handling NULL values in 'insert'
...
mode properly. This will apply correctly to 1.09 & 2.0 sources.
From David H. Bennett
1996-11-20 22:32:55 +00:00
Bruce Momjian
bdb25dbad6
Fix for man Makefile. Added 'all'.
1996-11-20 01:54:13 +00:00
Bruce Momjian
9529238d78
Make install change for man files
1996-11-19 22:23:13 +00:00
Bruce Momjian
2abbf392bd
Removed old Assert's used during development.
1996-11-19 05:06:39 +00:00
Bryan Henderson
81f5c669e9
This file has not been part of the regression test for many releases.
1996-11-19 02:57:10 +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
b8eb6400de
Eliminate mk/ directory. The tyranny of the included make file templates is
...
ended!
1996-11-19 02:52:21 +00:00
Bryan Henderson
be421b9b9a
Build man/ instead of ../doc. Man pages have moved there.
1996-11-19 02:43:46 +00:00
Bruce Momjian
c6453ea75f
Added DLSUFFIX to bsdi.
1996-11-18 16:32:53 +00:00
Bruce Momjian
317f375bb2
Rename SLSUFF to DLSUFFIX
1996-11-18 06:07:56 +00:00
Bryan Henderson
4a820de1f2
Include some macros that used to be -D options in Makefile.global.
1996-11-18 02:27:27 +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
Bryan Henderson
435d4f4a79
Quiet compiler warnings, ignore the ones we can't.
1996-11-18 01:44:28 +00:00
Bryan Henderson
e780f0fef3
Ignore compiler warnings, because we can't escape "abstract declarator used
...
as declaration".
1996-11-18 01:43:55 +00:00
Bruce Momjian
529189f407
Renamed file. Restored SLSUFF to .so.
1996-11-17 20:30:32 +00:00
Bruce Momjian
99a4dc0598
Copy needed include files into standard directory.
1996-11-17 19:27:38 +00:00
Bruce Momjian
b715c3ad96
Change SLSUFF from .so to .o as default.
1996-11-17 19:26:44 +00:00
Bruce Momjian
75f58aef7c
New backend directory description file.
1996-11-17 05:26:57 +00:00
Bruce Momjian
ca1a20eba4
Fix for -da option of pg_dump.
1996-11-17 04:56:16 +00:00
Bruce Momjian
cc7f032289
Fix for return code of psql in manual.
1996-11-17 04:27:34 +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
620f014621
Fix syntax errors so it runs without error messages.
1996-11-17 03:55:07 +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
5dd3c5620c
Added documentation on new unique index capability.
1996-11-16 05:45:56 +00:00
Bruce Momjian
4024d43069
Added include file needed by memset().
1996-11-16 05:18:58 +00:00
Bruce Momjian
b3ce105b31
Add prototype for new datetime functions.
1996-11-16 04:59:10 +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
Bruce Momjian
a180738ddd
Changed " to '. Removed bug section from psql. added reminder for log call
...
in built-in. fixed backslases in source for libpq.
1996-11-15 17:55: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
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