Bruce Momjian [Fri, 14 Feb 1997 04:19:07 +0000 (04:19 +0000)]
Remove WIN32 defines. They never worked.
Bruce Momjian [Thu, 13 Feb 1997 15:55:01 +0000 (15:55 +0000)]
Fix naming from proc to prio to fix previous patch.
Bruce Momjian [Thu, 13 Feb 1997 15:40:03 +0000 (15:40 +0000)]
Only allow NULL in the prpoer places.
Marc G. Fournier [Thu, 13 Feb 1997 10:01:05 +0000 (10:01 +0000)]
Bring in Leo's <lsh@lubrizol.com> massive changes to libpq++
Marc G. Fournier [Thu, 13 Feb 1997 09:54:14 +0000 (09:54 +0000)]
Improvements to the ultrix port, in particular a bunch of compiler
quieting prototyping in port/ultrix4.h
Submitted by: Erik Bertelsen <erik@sockdev.uni-c.dk>
Marc G. Fournier [Thu, 13 Feb 1997 08:33:28 +0000 (08:33 +0000)]
Had configure check for strdup, but didn't have it set HAVE_STRDUP
Fixed
Marc G. Fournier [Thu, 13 Feb 1997 08:32:20 +0000 (08:32 +0000)]
Various patches for nextstep by GregorHoffleit
Replaced NEED_STRDUP by !HAVE_STRDUP
Marc G. Fournier [Thu, 13 Feb 1997 08:06:36 +0000 (08:06 +0000)]
Patch for:
The following patch to src/backend/libpq/pqpacket.c provides additional
checking for bad packet length data. It was tested with the Linux telnet
client, with netcat using the numbers.txt and by dumping random numbers
into the port.
Patch by: Alvaro Martinez Echevarria <alvaro@lander.es>
Marc G. Fournier [Wed, 12 Feb 1997 11:05:10 +0000 (11:05 +0000)]
Removed a reference to DATADIR that still existed
Marc G. Fournier [Wed, 12 Feb 1997 05:25:13 +0000 (05:25 +0000)]
Patch from Massimo Dal Zotto <dz@cs.unitn.it>
The following patches add to the backend a new debugging flag -K which prints
a debug trace of all locking operations on user relations (those with oid
greater than 20000). The code is compiled only if LOCK_MGR_DEBUG is defined,
so the patch should be harmless if not explicitly enabled.
I'm using the code to trace deadlock conditions caused by application queries
using the command "$POSTMASTER -D $PGDATA -o '-d 1 -K 1'.
The patches are for version 6.0 dated 970126.
Marc G. Fournier [Wed, 12 Feb 1997 05:17:19 +0000 (05:17 +0000)]
Make sure we have an irix port
Pointed out by: Dave Morrison (mirrison@mail.phy.ornl.gov)
Marc G. Fournier [Wed, 12 Feb 1997 05:04:52 +0000 (05:04 +0000)]
What looks like some *major* improvements to btree indexing...
Patches from: aoki@CS.Berkeley.EDU (Paul M. Aoki)
i gave jolly my btree bulkload code a long, long time ago but never
gave him a bunch of my bugfixes. here's a diff against the 6.0
baseline.
for some reason, this code has slowed down somewhat relative to the
insertion-build code on very small tables. don't know why -- it used
to be within about 10%. anyway, here are some (highly unscientific!)
timings on a dec 3000/300 for synthetic tables with 10k, 100k and
1000k tuples (basically, 1mb, 10mb and 100mb heaps). 'c' means
clustered (pre-sorted) inputs and 'u' means unclustered (randomly
ordered) inputs. the 10k table basically fits in the buffer pool, but
the 100k and 1000k tables don't. as you can see, insertion build is
fine if you've sorted your heaps on your index key or if your heap
fits in core, but is absolutely horrible on unordered data (yes,
that's 7.5 hours to index 100mb of data...) because of the zillions of
random i/os.
if it doesn't work for you for whatever reason, you can always turn it
back off by flipping the FastBuild flag in nbtree.c. i don't have
time to maintain it.
good luck!
baseline code:
time psql -c 'create index c10 on k10 using btree (c int4_ops)' bttest
real 8.6
time psql -c 'create index u10 on k10 using btree (b int4_ops)' bttest
real 9.1
time psql -c 'create index c100 on k100 using btree (c int4_ops)' bttest
real 59.2
time psql -c 'create index u100 on k100 using btree (b int4_ops)' bttest
real 652.4
time psql -c 'create index c1000 on k1000 using btree (c int4_ops)' bttest
real 636.1
time psql -c 'create index u1000 on k1000 using btree (b int4_ops)' bttest
real 26772.9
bulkloading code:
time psql -c 'create index c10 on k10 using btree (c int4_ops)' bttest
real 11.3
time psql -c 'create index u10 on k10 using btree (b int4_ops)' bttest
real 10.4
time psql -c 'create index c100 on k100 using btree (c int4_ops)' bttest
real 59.5
time psql -c 'create index u100 on k100 using btree (b int4_ops)' bttest
real 63.5
time psql -c 'create index c1000 on k1000 using btree (c int4_ops)' bttest
real 636.9
time psql -c 'create index u1000 on k1000 using btree (b int4_ops)' bttest
real 701.0
Bruce Momjian [Tue, 11 Feb 1997 23:05:38 +0000 (23:05 +0000)]
Assign priorities when creating jobs in lock queue.
Bruce Momjian [Tue, 11 Feb 1997 15:37:18 +0000 (15:37 +0000)]
Add comment for questionable 5 padding.
Bruce Momjian [Tue, 11 Feb 1997 03:11:33 +0000 (03:11 +0000)]
Fix \? syntax for copy command.
Marc G. Fournier [Sun, 9 Feb 1997 04:50:25 +0000 (04:50 +0000)]
Remove machine.h, since it wasn't doing anything that config.h wasn't
already doing
Removed only reference to a machine.h I could find in c.h, to win32/machine.h
Marc G. Fournier [Sun, 9 Feb 1997 04:34:07 +0000 (04:34 +0000)]
Try to further reduce the PORT dependencies.
Essentially, config.h now includes an 'os.h', which is created via
configure by linking a "port.h" file from the port directory to the
include directory.
Going to try to merge backend/port in similar ways
Marc G. Fournier [Sun, 9 Feb 1997 03:36:08 +0000 (03:36 +0000)]
Remove NO_{SIGPROCMASK,SETSID,WAITPID} from nextstep port, since they
aren't doing anything anyway
Marc G. Fournier [Sun, 9 Feb 1997 03:33:38 +0000 (03:33 +0000)]
Changes to configure/config.h.in to check for:
sigprocmask, setsid and waitpid
Especially for nextstep systems
Awaiting for a context diff from Gregor to complete changes for the nextstep
port
Marc G. Fournier [Sun, 9 Feb 1997 03:23:52 +0000 (03:23 +0000)]
Various fixes suggested by Gregor Hoffleit
Add a check to configure for strdup
Remove all the '-ltermcap' checks from psql/Makefile
Have {psql,pg_dump}/Makefile modified if strdup doesn't exist on the system
Marc G. Fournier [Sun, 9 Feb 1997 03:00:09 +0000 (03:00 +0000)]
|I took a look at this and I think pg_dump mishandles arrays of ints and floats
|by neglecting to quote them.
|
|I have made a minor change to pg_dump.c that will fix this.
|
|Dates are dumped and restored OK with pg_dump in V6
|
|We'll still need to fix the dump in both cases if the original dump is from V1.09.
From Keith Parks
Bruce Momjian [Sat, 8 Feb 1997 20:39:50 +0000 (20:39 +0000)]
Add missing paren for hpux.
Marc G. Fournier [Sat, 8 Feb 1997 03:29:31 +0000 (03:29 +0000)]
Oops, the port is ultrix4, not ultrix
Pointed out by: Erik Bertelsen
Marc G. Fournier [Fri, 7 Feb 1997 17:49:50 +0000 (17:49 +0000)]
Add in netbsd*) to configure
Pointed out by D'Arcy
Bruce Momjian [Fri, 7 Feb 1997 16:24:12 +0000 (16:24 +0000)]
Add attribute optimization statistics.
Marc G. Fournier [Fri, 7 Feb 1997 11:07:43 +0000 (11:07 +0000)]
Add ultrix to configure
Marc G. Fournier [Fri, 7 Feb 1997 10:18:35 +0000 (10:18 +0000)]
Add in the nextstep port so that configure will (should?) run on it
Marc G. Fournier [Thu, 6 Feb 1997 20:55:03 +0000 (20:55 +0000)]
The test for union semun requires <sys/ipc.h>
Pointed out by Bruce
Bruce Momjian [Thu, 6 Feb 1997 19:27:22 +0000 (19:27 +0000)]
Remove extra paren in ifdef.
Marc G. Fournier [Thu, 6 Feb 1997 08:40:16 +0000 (08:40 +0000)]
Various changes to improve/support Mklinux
Submitted by: Tatsuo Ishii
Marc G. Fournier [Thu, 6 Feb 1997 06:33:58 +0000 (06:33 +0000)]
Make sure all changes are committed...
Marc G. Fournier [Thu, 6 Feb 1997 06:15:49 +0000 (06:15 +0000)]
autoconf test for and set HAVE_VFORK
Marc G. Fournier [Thu, 6 Feb 1997 05:30:50 +0000 (05:30 +0000)]
Add test for union semun to configure
Remove references to NEED_UNION_SEMUN from include/config.h.in and
from include/storage/ipc.h, replacing it with a single HAVE_UNION_SEMUN
Marc G. Fournier [Thu, 6 Feb 1997 05:05:04 +0000 (05:05 +0000)]
Change ordering of libraries
Bruce Momjian [Thu, 6 Feb 1997 02:31:52 +0000 (02:31 +0000)]
Include main Makefile.global first so variables are not over-written.
Marc G. Fournier [Wed, 5 Feb 1997 21:28:22 +0000 (21:28 +0000)]
Oops, just about forgot to commit this one too :(
Marc G. Fournier [Wed, 5 Feb 1997 21:27:04 +0000 (21:27 +0000)]
Get in there...
Marc G. Fournier [Wed, 5 Feb 1997 21:22:07 +0000 (21:22 +0000)]
Add Makefile.in so that configure can determine if inet_aton.o is required
Add CFLAGS= @CPPFLAGS@ to Makefile.global and configure so that build is
useful for finding extra header files
Split header files from libraries in build. Doesn't make much sense to
look for a header file in /usr/local/lib, nor to look for a library
in /usr/local/include :)
Bruce Momjian [Wed, 5 Feb 1997 04:47:20 +0000 (04:47 +0000)]
Update to handle include search paths.
Marc G. Fournier [Tue, 4 Feb 1997 22:39:56 +0000 (22:39 +0000)]
Add in appropriate checks for inet_aton, and modifications to backend/port/Makefile
to include inet_aton.c if required
Marc G. Fournier [Tue, 4 Feb 1997 22:36:30 +0000 (22:36 +0000)]
Test for existence of inet_aton on the system, and only include inet_aton.c if
required
Pointed out by Brian E. Gallew
Marc G. Fournier [Tue, 4 Feb 1997 22:24:40 +0000 (22:24 +0000)]
Add in a check for AIX port and set PORTNAME accordingly
Pointed out by: Darren King
Marc G. Fournier [Tue, 4 Feb 1997 22:17:23 +0000 (22:17 +0000)]
Remove a library check that isn't used right now
Marc G. Fournier [Tue, 4 Feb 1997 22:14:24 +0000 (22:14 +0000)]
Add a 'build' script. All it currently does is prompts the user for additional 'lib'
directories to search to find libraries, and then runs ./configure directly
Marc G. Fournier [Tue, 4 Feb 1997 21:40:54 +0000 (21:40 +0000)]
Add conditional for port to bsdi
Marc G. Fournier [Tue, 4 Feb 1997 09:16:08 +0000 (09:16 +0000)]
Fix for echo newline suppression detection
Submitted by: Keith Parks
Marc G. Fournier [Tue, 4 Feb 1997 09:13:59 +0000 (09:13 +0000)]
Remove default GNUmakefile and Makefile.global
Change reference to Postgres95 to PostgreSQL in GNUmakefile
Marc G. Fournier [Tue, 4 Feb 1997 09:08:56 +0000 (09:08 +0000)]
remove old non-autoconf config.h
clean up some of the readline code in config.h.in
Marc G. Fournier [Tue, 4 Feb 1997 08:54:47 +0000 (08:54 +0000)]
Final file required for autoconf, so far...
Marc G. Fournier [Tue, 4 Feb 1997 08:53:45 +0000 (08:53 +0000)]
Bring back in the autoconf files - work in progress
Marc G. Fournier [Mon, 3 Feb 1997 04:43:31 +0000 (04:43 +0000)]
Change references to NEED_RUSAGE to HAVE_RUSAGE
Pointed out by:" Tatsuo Ishii <t-ishii@sra.co.jp>
Marc G. Fournier [Thu, 30 Jan 1997 16:02:38 +0000 (16:02 +0000)]
AIX *does* have <sys/select.h>
Pointed out by Darren King
Marc G. Fournier [Thu, 30 Jan 1997 04:00:50 +0000 (04:00 +0000)]
Convert Postgres95 to PostgreSQL
Pointed out by Andrew Martin
Marc G. Fournier [Thu, 30 Jan 1997 03:59:44 +0000 (03:59 +0000)]
Change Postgres95 references to PostgreSQL
Marc G. Fournier [Thu, 30 Jan 1997 03:58:15 +0000 (03:58 +0000)]
Change 'next' to 'nextstep' as port name
Pointed out by Andrew Martin
Marc G. Fournier [Thu, 30 Jan 1997 03:56:53 +0000 (03:56 +0000)]
Revisions to customize for READLINE support
From Andrew Martin
Marc G. Fournier [Thu, 30 Jan 1997 03:55:40 +0000 (03:55 +0000)]
Update Linux and Irix FAQs
From Andrew
Marc G. Fournier [Thu, 30 Jan 1997 03:54:13 +0000 (03:54 +0000)]
aix does have <termios.h>
pointed out by Darren King
Bruce Momjian [Wed, 29 Jan 1997 05:26:59 +0000 (05:26 +0000)]
Changes to get ready for 6.0 final release.
Marc G. Fournier [Wed, 29 Jan 1997 04:49:14 +0000 (04:49 +0000)]
Linux doesn't have sys/select.h...
Vadim B. Mikheev [Wed, 29 Jan 1997 02:59:03 +0000 (02:59 +0000)]
New func _vc_scanoneind: scan one index relation to update statistic
in pg_class if no one page was reapped by vacuum.
Marc G. Fournier [Tue, 28 Jan 1997 20:49:59 +0000 (20:49 +0000)]
Point bug reports at bugs@postgresql.org
Marc G. Fournier [Tue, 28 Jan 1997 18:12:34 +0000 (18:12 +0000)]
Redirect bug reports to bugs@postgresql.org instead of hackers...
Bruce Momjian [Tue, 28 Jan 1997 13:53:50 +0000 (13:53 +0000)]
Added comment to readline defines.
Bruce Momjian [Tue, 28 Jan 1997 03:47:01 +0000 (03:47 +0000)]
Moved readline stuff into Makefile.global.
Marc G. Fournier [Mon, 27 Jan 1997 22:37:52 +0000 (22:37 +0000)]
Apply usage patches for European Dates patch from Keith
Marc G. Fournier [Mon, 27 Jan 1997 20:31:47 +0000 (20:31 +0000)]
Quick patch from Andrew to recognize nextstep vs next as a port
Marc G. Fournier [Mon, 27 Jan 1997 01:51:26 +0000 (01:51 +0000)]
Slight change to nabstime.c so that configure is able to handle a system
whereby timezone isn't an int, but tzset() exists...
This isn't a definitive fix, as there is probably an easier way of
fixing the bug...
Marc G. Fournier [Mon, 27 Jan 1997 00:09:47 +0000 (00:09 +0000)]
Convert MISSING_SYSCONF to !HAVE_SYSCONF for autoconf
From: Keith Parks
Bruce Momjian [Sun, 26 Jan 1997 20:22:33 +0000 (20:22 +0000)]
More removals for next/nextstep. Fix IPC lib for them.
Bruce Momjian [Sun, 26 Jan 1997 20:15:26 +0000 (20:15 +0000)]
Change next to nextstep where missed.
Marc G. Fournier [Sun, 26 Jan 1997 17:28:48 +0000 (17:28 +0000)]
|From: Keith Parks <emkxp01@mtcc.demon.co.uk>
|Subject: [PATCH] adding SYS_TIME just for fun.
|
|Hi,
|
|Whilst I was playing round with the European dates patch I noticed the sysfunc()
|that allows you to do :-
|
|create table test ( da date);
|insert into test values (SYS_DATE);
|
|and have the current system date inserted.
|
|So I thought it would be nice to have the SYS_TIME facility too.
|
|I've cloned the function and changed a few things and there you have it,
|you can now do:
|
|create table test2 ( ti time);
|insert into test2 values (SYS_TIME);
Marc G. Fournier [Sun, 26 Jan 1997 17:27:32 +0000 (17:27 +0000)]
Remove #include "rlstubs.h", since it doesn't exist anymore
Marc G. Fournier [Sun, 26 Jan 1997 16:06:42 +0000 (16:06 +0000)]
Linux defines MAXINT in values.h, which causes an error when compiling.
Wrap it in an #ifndef to prevent this
Marc G. Fournier [Sun, 26 Jan 1997 15:32:28 +0000 (15:32 +0000)]
Bring in a patch from Keith Parks to move the use of European dates
from a #define to a run-time option '-e'
Man page was updated to reflect new option
Bruce Momjian [Sun, 26 Jan 1997 00:45:25 +0000 (00:45 +0000)]
Fix typo in struct name.
Marc G. Fournier [Sat, 25 Jan 1997 23:54:08 +0000 (23:54 +0000)]
Remove rlstubs.[ch], since they weren't actually doing anything that couldn't
be #ifdef'd into psql.c itself
From what I can tell, if USE_READLINE is true or false, psql works under
FreeBSD, without configure. Now to test it *again* under sparc_solaris
with configure and see if it works...
Marc G. Fournier [Sat, 25 Jan 1997 22:52:08 +0000 (22:52 +0000)]
Okay, this should pretty much clean up the psql/readline/history mess.
Added a README.readline file until configure is integrated to *try* and
explain the way things stand.
Removed a stray configure .in file
Marc G. Fournier [Sat, 25 Jan 1997 22:16:43 +0000 (22:16 +0000)]
Why can't everyone be standard? :(
Add some code to make psql happy with a system where there is *no*
history code available, but there is readline code...
Marc G. Fournier [Sat, 25 Jan 1997 21:58:08 +0000 (21:58 +0000)]
Modifications to handle the situation where readline.h exists, but
history.h doesn't...previously, it was assumed that both existed, or
didn't exist...but this assumption fails on the one sparc_solaris box
that I have access to, and could exist in other circumstances
Marc G. Fournier [Sat, 25 Jan 1997 21:55:37 +0000 (21:55 +0000)]
Some fixes for using configure under sparc_solaris
Bruce Momjian [Sat, 25 Jan 1997 21:09:20 +0000 (21:09 +0000)]
would you mind committing the following changes for me? (the first
bug causes compilation to fail on alpha, the second causes a compiler
in this environment
Bruce Momjian [Sat, 25 Jan 1997 21:01:16 +0000 (21:01 +0000)]
More autosize structure error checks.
Marc G. Fournier [Sat, 25 Jan 1997 19:29:47 +0000 (19:29 +0000)]
The check should be for getrusage(), not rusage() ... change the defines
to reflect what configure is going to define when the time comes
Marc G. Fournier [Sat, 25 Jan 1997 19:25:05 +0000 (19:25 +0000)]
Remove -lsocket -lnsl from X11_LIB, since it should be added on a port-by-port
basis, as its only specific to certain OSs
Marc G. Fournier [Sat, 25 Jan 1997 19:23:43 +0000 (19:23 +0000)]
Disable -Werror by default.
Developers can add it to their Makefile.custom...again, it causes sooooo many
more problems then its worth, from an end-user standpoint.
Marc G. Fournier [Sat, 25 Jan 1997 19:22:27 +0000 (19:22 +0000)]
remove asm/bitops.h, as its causing more problems then it fixes.
Marc G. Fournier [Sat, 25 Jan 1997 19:19:35 +0000 (19:19 +0000)]
Add YACC= bison -y as per Andrew's request...
Marc G. Fournier [Sat, 25 Jan 1997 03:51:59 +0000 (03:51 +0000)]
Change how readline support is included in psql.c ...
See message to hackers@ mailing list concerning this...
Bruce Momjian [Sat, 25 Jan 1997 03:09:33 +0000 (03:09 +0000)]
Restructure padding to handle structure already 128 bytes(alpha).
Marc G. Fournier [Fri, 24 Jan 1997 23:48:32 +0000 (23:48 +0000)]
Switch over NEED_RUSAGE to HAVE_RUSAGE for configure
Marc G. Fournier [Fri, 24 Jan 1997 23:36:33 +0000 (23:36 +0000)]
I reversed a bunch of the #define's inadvertantly...
Fixed them, and am re-committing
Marc G. Fournier [Fri, 24 Jan 1997 23:35:16 +0000 (23:35 +0000)]
Missed this when I removed the rest of the configure stuff
Marc G. Fournier [Fri, 24 Jan 1997 22:42:35 +0000 (22:42 +0000)]
Change NEED_SIG_JMP to HAVE_SIGSETJMP in preparation for configure
Marc G. Fournier [Fri, 24 Jan 1997 18:27:32 +0000 (18:27 +0000)]
Another switch for configure: NEED_SYS_SELECT_H to HAVE_SYS_SELECT_H
Marc G. Fournier [Fri, 24 Jan 1997 18:17:37 +0000 (18:17 +0000)]
Convert NEED_{RINT,CBRT,ISINF} to HAVE_* in prepration for configure...
Marc G. Fournier [Fri, 24 Jan 1997 18:00:48 +0000 (18:00 +0000)]
Replace occurances of USE_{LIMITS,VALUES}_H with HAVE_* in preparation
for switch over to configure
Marc G. Fournier [Fri, 24 Jan 1997 17:47:39 +0000 (17:47 +0000)]
Remove from include/config.h:
#if defined(aix)
#define TERMIOS_H_LOCATION <termios.h>
#else
#define TERMIOS_H_LOCATION <sys/termios.h>
#endif
libpq/fe-exec.c modified so that location of termios.h is determined
by whether HAVE_TERMIOS_H is defined or not, in preparation for switch
to configure
Marc G. Fournier [Fri, 24 Jan 1997 17:32:34 +0000 (17:32 +0000)]
This should clean everything up back to pre-configure status
Marc G. Fournier [Fri, 24 Jan 1997 17:09:11 +0000 (17:09 +0000)]
Remove all the configure related stuff...