Bruce Momjian [Sun, 17 Jan 1999 06:20:06 +0000 (06:20 +0000)]
Apply Win32 patch from Horak Daniel.
Bruce Momjian [Sun, 17 Jan 1999 04:51:59 +0000 (04:51 +0000)]
As the email posted to the announce and interfaces list, attached is a tar
file containing the latest version of the JDBC driver, allowing it to be
compiled and used under JDK 1.2 and later.
NB: None (well almost none) of the new methods actually do anything. This
release only handles getting it to compile and run. Now this is done, I'll
start working on implementing the new stuff.
Now this tar file replaces everything under src/interfaces/jdbc. I had to
do it this way, rather than diffs, because most of the classes under the
postgresql subdirectory have moved to a new directory under that one, to
enable the support of the two JDBC standards.
Here's a list of files in the tar file. Any file not listed here (in the
postgresql directory) will have to be deleted, otherwise it could cause
the driver to fail:
Peter Mount
Tom Lane [Sun, 17 Jan 1999 03:37:19 +0000 (03:37 +0000)]
Improve error message when connect() call fails:
report kernel's errno value.
Bruce Momjian [Sun, 17 Jan 1999 03:28:37 +0000 (03:28 +0000)]
Fix for missing NAN.
Tom Lane [Sun, 17 Jan 1999 03:22:52 +0000 (03:22 +0000)]
Add configure test to see whether vsnprintf() is present,
separately from snprintf() --- HPUX, for one, has snprintf but not
vsnprintf. Fix a minor typo in snprintf.c, too.
Tom Lane [Sun, 17 Jan 1999 03:10:23 +0000 (03:10 +0000)]
Remove uses of MSG_WAITALL temporarily, since it doesn't
seem to be portable (HPUX doesn't like it, anyway). Also, clean up
StreamConnection(), which was mis-coded to assume that the address
family field is already set when it's called.
Tom Lane [Sun, 17 Jan 1999 03:04:57 +0000 (03:04 +0000)]
Replace direct inclusions of c.h with inclusion of postgres.h,
to ensure that config.h is included as well.
Tom Lane [Sun, 17 Jan 1999 01:45:42 +0000 (01:45 +0000)]
Apply Magnus Hagander's followup patch to correct
out-of-sync routine prototypes ... the system doesn't compile without this ...
Tom Lane [Sun, 17 Jan 1999 00:18:59 +0000 (00:18 +0000)]
Re-insert %.sl rule into Makefile.hpux ... seems it is not
quite as unused as I thought ... how embarrassing.
Marc G. Fournier [Tue, 12 Jan 1999 12:49:52 +0000 (12:49 +0000)]
From: Magnus Hagander
Here's another patch for the libpq backend areas. This patch removes all
usage of "FILE *" on the communications channel. It also cleans up the
comments and headers in the pqcomm.c file - a lot of things were either
missing or incorrect. Finally, it removes a couple of unused functions
(leftovers from the time of shared code between the libpq backend and
frontend).
Marc G. Fournier [Mon, 11 Jan 1999 03:56:11 +0000 (03:56 +0000)]
From: Magnus Hagander
Here is a first patch to cleanup the backend side of libpq.
This patch removes all external dependencies on the "Pfin" and "Pfout" that
are declared in pqcomm.h. These variables are also changed to "static" to
make sure.
Almost all the change is in the handler of the "copy" command - most other
areas of the backend already used the correct functions.
This change will make the way for cleanup of the internal stuff there - now
that all the functions accessing the file descriptors are confined to a
single directory.
Thomas G. Lockhart [Sun, 10 Jan 1999 17:20:54 +0000 (17:20 +0000)]
Be more careful to check input string lengths as well as values
when deciding whether a field is a year field. Assume *anything* longer
than 2 digits (if it isn't a special-case doy) is a valid year.
This should fix the "Y1K" and "Y10K" problems
pointed out by Massimo recently.
Check usage of BC to require a positive-valued year; before just used it
to flip the sign of the year without checking. This led to problems
near year zero.
Allow a 5 digit "concatenated date" of 2 digit year plus day of year.
Do 2->4 digit year correction for 6 and 5 digit "concatenated dates".
Somehow forgot this originally. Guess not many folks use it...
Thomas G. Lockhart [Sun, 10 Jan 1999 17:13:06 +0000 (17:13 +0000)]
Handle "NaN" and "Infinity" for input values.
I think NAN is already guaranteed to be there from Jan's work on NUMERIC,
but perhaps HUGE_VAL needs some #ifndef's in the same place.
Should also include "-Infinity" as -HUGE_VAL sometime; not there yet.
Byron Nikolaidis [Fri, 8 Jan 1999 18:24:45 +0000 (18:24 +0000)]
Update 06-40-0004 -- Add Bookmark support!
Bruce Momjian [Thu, 7 Jan 1999 19:11:18 +0000 (19:11 +0000)]
Sorry for posting it here again, but I haven't corrected my
subscriptions
yet. It's just a small patch to ecpg to keep it in sync with gram.y.
Michael
Thomas G. Lockhart [Thu, 7 Jan 1999 06:19:17 +0000 (06:19 +0000)]
Fix build rules for the tutorial,
which was not built last time these things changed.
Thomas G. Lockhart [Thu, 7 Jan 1999 03:17:46 +0000 (03:17 +0000)]
Refresh info for various platforms. Claim client-side support for WIN32.
Thomas G. Lockhart [Thu, 7 Jan 1999 03:05:28 +0000 (03:05 +0000)]
Fix typo.
Thomas G. Lockhart [Thu, 7 Jan 1999 03:05:01 +0000 (03:05 +0000)]
Add entries for introduction chapter components such as Y2K statement.
Use a rather than when referring to libpq
since that chapter is not included in the tutorial.
Thomas G. Lockhart [Thu, 7 Jan 1999 03:02:27 +0000 (03:02 +0000)]
Remove mention of a couple of introductory chapters
which are not used here.
Thomas G. Lockhart [Thu, 7 Jan 1999 03:01:27 +0000 (03:01 +0000)]
Fix column formatting for a table. No content changes.
Thomas G. Lockhart [Thu, 7 Jan 1999 03:00:43 +0000 (03:00 +0000)]
Put in more markup. Not done yet though.
Thomas G. Lockhart [Thu, 7 Jan 1999 02:59:45 +0000 (02:59 +0000)]
Include installation instructions for WIN32 client-side libraries.
From Magnus Hagander .
Byron Nikolaidis [Wed, 6 Jan 1999 20:44:08 +0000 (20:44 +0000)]
Update 06-40-0003
Vadim B. Mikheev [Tue, 5 Jan 1999 15:46:25 +0000 (15:46 +0000)]
SELECT FOR UPDATE syntax
Jan Wieck [Tue, 5 Jan 1999 11:12:11 +0000 (11:12 +0000)]
Restricted maximum precision for NUMERIC to 1000 digits.
Anything else is CPU overkill.
Jan
Jan Wieck [Tue, 5 Jan 1999 11:10:45 +0000 (11:10 +0000)]
Removed precision restriction in numeric_round() causing
overflow error on high precision calculations where temporary
huge precision is required.
Jan
Byron Nikolaidis [Tue, 5 Jan 1999 00:32:21 +0000 (00:32 +0000)]
Mini Update #2 -- final fixes for buffer lengths, null buffers, truncation
Jan Wieck [Mon, 4 Jan 1999 17:51:58 +0000 (17:51 +0000)]
Just one more bugfix - this time in cmp_abs (cannot imagine that
taking a logarithm with a 400 digit precision worked with that bug
in place).
Jan
Jan Wieck [Mon, 4 Jan 1999 12:53:23 +0000 (12:53 +0000)]
Fixed backend crashing bug in apply_typmod()
Jan
Jan Wieck [Mon, 4 Jan 1999 11:20:33 +0000 (11:20 +0000)]
Little fix for round() function
Jan
Bruce Momjian [Sun, 3 Jan 1999 06:57:05 +0000 (06:57 +0000)]
update HISTORY
Bruce Momjian [Sun, 3 Jan 1999 05:30:47 +0000 (05:30 +0000)]
Fix NAN code.
Bruce Momjian [Sun, 3 Jan 1999 02:40:12 +0000 (02:40 +0000)]
Fix for NAN generation.
Bruce Momjian [Sat, 2 Jan 1999 16:06:42 +0000 (16:06 +0000)]
Mention 6.4.2 changes.
Bruce Momjian [Fri, 1 Jan 1999 04:48:49 +0000 (04:48 +0000)]
Some security, since we now have vsnprintf, I remade an old patch
with some extra ugly sprintfs fixed. More work in this area is
needed still.
Göran Thyni
Bruce Momjian [Fri, 1 Jan 1999 04:17:13 +0000 (04:17 +0000)]
Fix for no platform NAN.
Bruce Momjian [Thu, 31 Dec 1998 20:09:49 +0000 (20:09 +0000)]
Add max oid display, rather than returning just a dash for the last entry.
Thomas G. Lockhart [Thu, 31 Dec 1998 16:30:59 +0000 (16:30 +0000)]
Change ordering of HAVE_TM_ZONE and HAVE_INT_TIMEZONE code blocks
to give HAVE_TM_ZONE priority. This fixes glibc2 machines and any other
machine which passes both tests in configure.
Repair HAVE_TM_ZONE code which stuffs tm structure with date type values.
Same problems as were originally there before v6.1, but never noticed.
Thanks to Oleg for nagging :)
Byron Nikolaidis [Thu, 31 Dec 1998 00:26:44 +0000 (00:26 +0000)]
uncomment MYLOG to prevent warnings in compile
Byron Nikolaidis [Thu, 31 Dec 1998 00:26:06 +0000 (00:26 +0000)]
Mini update to fix SQLGetInfo to work properly (truncation, NULL)
Jan Wieck [Wed, 30 Dec 1998 20:46:06 +0000 (20:46 +0000)]
Little precision fix for POWER(). I discovered problems with big
exponents.
Jan
Jan Wieck [Wed, 30 Dec 1998 19:56:35 +0000 (19:56 +0000)]
Added NUMERIC data type with many builtin funcitons, operators
and aggregates.
Jan
Bruce Momjian [Tue, 29 Dec 1998 19:32:08 +0000 (19:32 +0000)]
Update for deadlock detection.
Bruce Momjian [Tue, 29 Dec 1998 18:36:29 +0000 (18:36 +0000)]
Update for deadlock timer.
Bruce Momjian [Tue, 29 Dec 1998 18:30:33 +0000 (18:30 +0000)]
Fix for deadlock detection timeout.
Bruce Momjian [Tue, 29 Dec 1998 18:29:18 +0000 (18:29 +0000)]
Fix for deadlock timer timeout.
Byron Nikolaidis [Tue, 29 Dec 1998 14:59:30 +0000 (14:59 +0000)]
Minor fixes to compile on unix for v6-40-0002
Thomas G. Lockhart [Tue, 29 Dec 1998 02:24:47 +0000 (02:24 +0000)]
Clean up to ensure tag completion as required by the newest versions
of Norm's Modular Style Sheets and jade/docbook.
From Vince Vielhaber .
Byron Nikolaidis [Tue, 29 Dec 1998 01:49:58 +0000 (01:49 +0000)]
Update for version 6-40-0002 and re-merge Thomas' changes.
Bruce Momjian [Mon, 28 Dec 1998 05:41:51 +0000 (05:41 +0000)]
autoconf
Bruce Momjian [Mon, 28 Dec 1998 05:37:50 +0000 (05:37 +0000)]
Fix for current dir not in path, from stan's report.
Bruce Momjian [Sat, 26 Dec 1998 18:15:53 +0000 (18:15 +0000)]
Long awaited port for NetBSD/m68k was finally done by Mr. Mutsuki
Nakajima. Since he is not subscribing the mailing list, I'm posting
his patches by his request. According to him, he has successfully
compiled and passed the regression test on Mac SE/30 running
NetBSD/m68k. Also, another person has reported that with the patches
PostgreSQL is working on NetBSD/sun3 too.
--
Tatsuo Ishii
Bruce Momjian [Fri, 25 Dec 1998 02:20:12 +0000 (02:20 +0000)]
Fix for version, update to 6.5.
Bruce Momjian [Thu, 24 Dec 1998 05:28:50 +0000 (05:28 +0000)]
Fix for snprintf and long long unsigned.
Bruce Momjian [Thu, 24 Dec 1998 05:21:59 +0000 (05:21 +0000)]
Update HISTORY in CURRENT tree.
Thomas G. Lockhart [Wed, 23 Dec 1998 14:38:40 +0000 (14:38 +0000)]
Fix reference to null pointer when no aggregate function candidates
are available. Problem reported by David Sauer .
Modify information in resulting error message to indicate both agg name
and data type.
Bruce Momjian [Wed, 23 Dec 1998 14:35:42 +0000 (14:35 +0000)]
Add subversion mention
Marc G. Fournier [Tue, 22 Dec 1998 18:50:56 +0000 (18:50 +0000)]
From: Michael Meskes
+
+Wed Dec 9 11:24:54 MEZ 1998
+
+ - Synced preproc.y with gram.y and the keywords.c files to add CASE
+ statement.
+
+Tue Dec 22 14:16:11 CET 1998
+
+ - Synced preproc.y with gram.y for locking statements.
+ - Set version to 2.4.5
Jan Wieck [Mon, 21 Dec 1998 12:50:29 +0000 (12:50 +0000)]
Changed TypeName.typmod to int32 - atttypmod is of that size
Jan
Marc G. Fournier [Sun, 20 Dec 1998 07:13:36 +0000 (07:13 +0000)]
finished cleaning up outnodes.c ...
Bruce Momjian [Fri, 18 Dec 1998 19:45:38 +0000 (19:45 +0000)]
Fix deadlock so it only checks once.
Bruce Momjian [Fri, 18 Dec 1998 18:01:10 +0000 (18:01 +0000)]
Included are patches for doc/README.mb and README.mb.jp.
Please apply to both trees.
--
Tatsuo Ishii
Bruce Momjian [Fri, 18 Dec 1998 17:54:42 +0000 (17:54 +0000)]
Add pgaccess Makefile.
Bruce Momjian [Fri, 18 Dec 1998 17:53:22 +0000 (17:53 +0000)]
Here are descriptions:
- the first patch is just to preven listing the perl warning in the
make output unless it is actually emitted by the make. this may
prevent new users from being confused by the warning in their output
- the second patch (to 2 files) just enables building/installing
pgaccess if TCL and TK are available. a Makefile is created to do
this, but you may wish to change the heading information in it since
I just copied another Makefile to use as a template.
I hope these make it into 6.4.1.
Cheers,
Brook
Bruce Momjian [Fri, 18 Dec 1998 17:25:41 +0000 (17:25 +0000)]
I have ported PostgreSQL 6.4 to Cobalt Qube running Linux 2.0.33 with
MIPS cpu (I think it's R4000). I have tested the patches on LinuxPPC
and FreeBSD. I believe they do not harm other platforms.
--
Tatsuo Ishii
Thomas G. Lockhart [Fri, 18 Dec 1998 16:23:34 +0000 (16:23 +0000)]
Fix typos in rules.sgml.
Add Emacs configuration block to postgres.sgml.
Thomas G. Lockhart [Fri, 18 Dec 1998 16:22:31 +0000 (16:22 +0000)]
Include example of Postgres' extended query syntax which allow one to omit
the FROM clause. e.g. "SELECT table.*".
Thomas G. Lockhart [Fri, 18 Dec 1998 16:20:28 +0000 (16:20 +0000)]
Update information on alternate database locations.
These fixes are from Jeff Hoffmann .
Thomas G. Lockhart [Fri, 18 Dec 1998 16:17:29 +0000 (16:17 +0000)]
Include more details on editing with Emacs.
Remove mention of the old "migration" flat files.
Change URLs for resources to point to areas, not particular files.
That way things stay correct even when version of tools change.
Suggested by Vince Vielhaber.
Thomas G. Lockhart [Fri, 18 Dec 1998 16:13:45 +0000 (16:13 +0000)]
Include keywords from CASE implementation.
Rearrange a few other keywords to put them in the proper category.
Thomas G. Lockhart [Fri, 18 Dec 1998 16:12:13 +0000 (16:12 +0000)]
Add Cobalt MIPS linux box from Tatsuo.
Thomas G. Lockhart [Fri, 18 Dec 1998 16:11:12 +0000 (16:11 +0000)]
Update some info, especially the CIDR/INET data types.
Thomas G. Lockhart [Fri, 18 Dec 1998 16:10:00 +0000 (16:10 +0000)]
Include Emacs DocBook DTD description file. May allow Emacs to understand
tags even if DocBook is not installed on your local system.
Most of the .sgml source files contain a reference to this file in an
Emacs setup block at the bottom of the file...
Thomas G. Lockhart [Fri, 18 Dec 1998 16:08:19 +0000 (16:08 +0000)]
Information on the CVS tree and remote access.
Not yet complete, integrated, or marked up.
Not yet included in a document (should go in the developer's doc?).
Jan Wieck [Fri, 18 Dec 1998 14:45:09 +0000 (14:45 +0000)]
Fixed nodeToString() to put out "<>" for NULL strings again.
More cleanups to appendStringInfo() usage in node/outfuncs.c.
Jan
Vadim B. Mikheev [Fri, 18 Dec 1998 09:10:39 +0000 (09:10 +0000)]
SET TRANSACTION ISOLATION LEVEL ...
LOCK TABLE IN ... MODE
...implemented
Bruce Momjian [Fri, 18 Dec 1998 07:09:26 +0000 (07:09 +0000)]
Missed a few files.
Bruce Momjian [Fri, 18 Dec 1998 07:08:03 +0000 (07:08 +0000)]
Attached is a patch with some fixes that (I think that) should go into
6.4.1. Here is the list:
- The type int8 now works. In fact, the bug(s) were in
src/backend/port/snprintf.c, so int8 is probably broken in every platform
that hasn't a native snprintf/vsnprintf. The type itself worked as
expected, only the output was wrong. Anyway, this patch should be checked
in other platforms.
- The regression tests for int2 and int4, which were broken due to
differences in the error messages, are fixed.
- The regression test for float8, which was broken in the reference
platform, is also fixed. I don't know if the new file (float8-OSF1.out)
will work on other platforms, but it might be worth to try it.
- Two new template files are provided (alpha_cc, which includes
optimization, and alpha_gcc), and src/templates/.similar is updated
accordingly. src/templates/alpha should be removed from the distribution.
*IMPORTANT NOTE*: I don't know if you can use gcc to compile postgres;
I've written the alpha_gcc file because alpha_cc has some flags that are
specific to DEC C.
- There is a (very basic) Digital Unix specific FAQ in
doc/FAQ_DigitalUnix.
--
-------------------------------------------------------------------
Pedro José Lobo Perea Tel: +34 91 336 78 19
Bruce Momjian [Fri, 18 Dec 1998 07:03:06 +0000 (07:03 +0000)]
Fix for HAVE_LONG bug in snprintf.c.
Bruce Momjian [Fri, 18 Dec 1998 06:59:39 +0000 (06:59 +0000)]
Fix for snprintf with long long's, define problem.
Bruce Momjian [Thu, 17 Dec 1998 16:37:04 +0000 (16:37 +0000)]
Remove need for doc 'install man' in INSTALL file. install does both
html and man.
Marc G. Fournier [Thu, 17 Dec 1998 13:09:52 +0000 (13:09 +0000)]
From: Keith Parks
Looks like :vartypmod got transmuted to %vartypmod in an editing session.
Bruce Momjian [Thu, 17 Dec 1998 01:43:04 +0000 (01:43 +0000)]
Upgrade to Pygress 2.2.
Vadim B. Mikheev [Wed, 16 Dec 1998 11:53:55 +0000 (11:53 +0000)]
Serialized mode works!
Marc G. Fournier [Tue, 15 Dec 1998 15:28:57 +0000 (15:28 +0000)]
Oops, sorry...meant to commit the patch from Thomas for tzn->CTZName
Vadim B. Mikheev [Tue, 15 Dec 1998 15:10:03 +0000 (15:10 +0000)]
tzn undeclared in FreeBSD, commented out.
Vadim B. Mikheev [Tue, 15 Dec 1998 12:47:01 +0000 (12:47 +0000)]
Initial MVCC code.
New code for locking buffer' context.
Marc G. Fournier [Tue, 15 Dec 1998 04:00:46 +0000 (04:00 +0000)]
More cleanups ... this is one big file *sigh*
Marc G. Fournier [Tue, 15 Dec 1998 02:32:57 +0000 (02:32 +0000)]
Correct some typos...
Marc G. Fournier [Tue, 15 Dec 1998 02:24:15 +0000 (02:24 +0000)]
More cleanups of appendStringInfo() function calls...
Bruce Momjian [Mon, 14 Dec 1998 15:05:27 +0000 (15:05 +0000)]
Compilation of libpq for Win32 breaks on 6.4, because of a change that I
missed before the release. It's simply a symbol that is undefined. This
patch defines this symbol in "win32.h", so it should have no effect on any
other platforms. It should go into 6.4.1 if possible, since compilation is
completely broken without it.
I am also attaching a patch for the "win32.mak" file - it leaves a file
behind when doing "make clean" after the library is built on Visual C++ 6.0.
This is not at all as urgent, but I don't see it breaking here, so I think
it might as well go in there too?
//Magnus
Marc G. Fournier [Mon, 14 Dec 1998 08:11:17 +0000 (08:11 +0000)]
more cleanups...of note, appendStringInfo now performs like sprintf(),
where you state a format and arguments. the old behavior required
each appendStringInfo to have to have a sprintf() before it if any
formatting was required.
Also shortened several instances where there were multiple appendStringInfo()
calls in a row, doing nothing more then adding one more word to the String,
instead of doing them all in one call.
Marc G. Fournier [Mon, 14 Dec 1998 06:50:32 +0000 (06:50 +0000)]
Many more cleanups...
Marc G. Fournier [Mon, 14 Dec 1998 05:19:16 +0000 (05:19 +0000)]
Initial attempt to clean up the code...
Switch sprintf() to snprintf()
Remove any/all #if 0 -or- #ifdef NOT_USED -or- #ifdef FALSE sections of
code
Bruce Momjian [Mon, 14 Dec 1998 05:13:39 +0000 (05:13 +0000)]
OK, here is a diff for the README file in /usr/src/pgsql/contrib/spi/.
For the 6.5 tree.
Have a great night.
Terry
Bruce Momjian [Mon, 14 Dec 1998 04:59:58 +0000 (04:59 +0000)]
Current multi-byte related codes have a bug with SQL_ASCII
support. Included patches will solve it and should be applied to
both trees. Also, it fix the problem with \c command of psql when
switching different encoding databases.
Regression tests passed.
--
Tatsuo Ishii
[email protected]
Thomas G. Lockhart [Mon, 14 Dec 1998 00:02:17 +0000 (00:02 +0000)]
Add support for the CASE statement in the rewrite handling.
Allows (at least some) rules and views.
Still some trouble (crashes) with target CASE columns spanning tables,
but lots now works.
Thomas G. Lockhart [Sun, 13 Dec 1998 23:56:44 +0000 (23:56 +0000)]
Improve CASE statement support.
Try to label CASE columns for a SELECT if not specified with an AS clause.
Thomas G. Lockhart [Sun, 13 Dec 1998 23:54:40 +0000 (23:54 +0000)]
Fix up error messages when looking up functions and operators to not
make the sometimes misleading claim that more than one candidate was
identified. Now say "Unable to identify...".