OSDN Git Service
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 <vev@michvhf.com>.
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 <davids@iol.cz>.
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 <Michael.Meskes@usa.net>
+
+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 <jeff@remapcorp.com>.
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 <emkxp01@mtcc.demon.co.uk>
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
t-ishii@sra.co.jp
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...".
Thomas G. Lockhart [Sun, 13 Dec 1998 23:50:58 +0000 (23:50 +0000)]
Use the new implicit type coersion techniques for matching up types
between columns and DEFAULT clauses.
Thomas G. Lockhart [Sun, 13 Dec 1998 23:49:18 +0000 (23:49 +0000)]
Clean up error messages associated with rules and views.
Fix parser error message when an operator is not found
to not explicitly claim that there is more than one.
Tom Lane [Sun, 13 Dec 1998 23:46:49 +0000 (23:46 +0000)]
Build pltcl.so correctly on platforms that want dependent
shared libraries to be listed in the link command.
Thomas G. Lockhart [Sun, 13 Dec 1998 23:45:22 +0000 (23:45 +0000)]
Add routines and synonyms to help with single-byte char type handling.
Fix one usage of substr() which mapped to the "Oracle compatibility" funcs
rather than the more recent (and closer to SQL92) function in varlena.c.
Add more DESC() entries for conversion functions.
Thomas G. Lockhart [Sun, 13 Dec 1998 23:41:32 +0000 (23:41 +0000)]
Adjust handling of data type names to suppress double quotes
unless necessary.
Label internal bpchar types as "character" and varchar types as
"character varying" to be less Postgres-specific. These types map to
the SQL92 definitions anyway.
Redefine g_force_quotes to be the local variable force_quotes.
Pass this as an argument to fmtId().
These should help with handling the single-byte internal "char" type.
Thomas G. Lockhart [Sun, 13 Dec 1998 23:36:48 +0000 (23:36 +0000)]
Add routines to help with single-byte (internal) character type support.
Thomas G. Lockhart [Sun, 13 Dec 1998 23:34:17 +0000 (23:34 +0000)]
Switch around conditional code so that HAVE_TM_ZONE takes precedence
over HAVE_INT_TIMEZONE. This may help out linux/glibc2 and Dec Alpha.
Included #error precompiler macros to catch cases where neither is defined
but USE_POSIX_TIME is (shouldn't happen). Hopefully this isn't just
a gcc-ism.
Tom Lane [Sun, 13 Dec 1998 20:05:16 +0000 (20:05 +0000)]
Partial fix for vendor-cc-versus-gcc incompatibility on HPUX:
prefer aCC as c++ compiler if hpux_cc is selected as template.
Doesn't solve the problem if you have g++ and not aCC, however...
Tom Lane [Sun, 13 Dec 1998 20:03:07 +0000 (20:03 +0000)]
Use standard AC_PROG_INSTALL macro to search for install program,
instead of our own halfway-there code. Add AC_STRUCT_TIMEZONE call
to check whether tm_zone exists in struct tm. Revise reading of template
file so that templates can define any variables they feel like (and,
indeed, can execute arbitrary shell code) rather than being constrained
to a fixed set of variable names.
Bruce Momjian [Sun, 13 Dec 1998 05:22:58 +0000 (05:22 +0000)]
Add enable_plpgsql from Oliver.
Bruce Momjian [Sun, 13 Dec 1998 05:14:53 +0000 (05:14 +0000)]
Cleanup patch from Oleg.
Bruce Momjian [Sun, 13 Dec 1998 05:07:50 +0000 (05:07 +0000)]
Fix for lo_import crash.
Bruce Momjian [Sun, 13 Dec 1998 04:37:51 +0000 (04:37 +0000)]
While investigating a user's complaint, I have found some memory
destructions in 6.4 source using purify.
(1) parser/gram.y:fmtId()
It writes n+3 bytes into n+1 byte-long memory area if mixed case or
non-ascii identifiers given.
(2) catalog/index.c:
ATTRIBUTE_TUPLE_SIZE bytes are allocated but
sizeof(FormData_pg_attribute) bytes are written. Note that
ATTRIBUTE_TUPLE_SIZE is smaller than
sizeof(FormData_pg_attribute). (for example, on solaris 2.6,
Tatsuo Ishii
Bruce Momjian [Sun, 13 Dec 1998 04:16:51 +0000 (04:16 +0000)]
I have a simple patch about the treatment of functions.
But it may be self-satisfied.
Please check my patch at the end of this posting.
Case 1. executor evaluates functions twice
Hiroshi Inoue
Inoue@tpf.co.jp
Bruce Momjian [Sun, 13 Dec 1998 03:53:56 +0000 (03:53 +0000)]
New ecpg man page.
Bruce Momjian [Sun, 13 Dec 1998 03:44:38 +0000 (03:44 +0000)]
Change Size from unsigned int to size_t.
Bruce Momjian [Sun, 13 Dec 1998 02:50:20 +0000 (02:50 +0000)]
This patch fixes the undefined (according to C) and erroneous (under
Digital Uni x with both DEC cc and gcc) behaviour of modifying an
lvalue on the left side an d then using it on the right side of an
assignment. Since this code modifies the
dbname parameter, it was changing, for example, "dbname=template1"
into "dbname =emplate1".
David Smith Programmer P
Bruce Momjian [Sat, 12 Dec 1998 22:04:09 +0000 (22:04 +0000)]
Included patches should fix following problems in the muti-byte
enabled PostgreSQL 6.4.
o binary cursor does not work
o pg_dumpall produces incorrect create database statemnt
Tatsuo Ishii
t-ishii@sra.co.jp
Bruce Momjian [Sat, 12 Dec 1998 21:30:57 +0000 (21:30 +0000)]
Fix prototype for 64-bit platforms.
Bruce Momjian [Sat, 12 Dec 1998 21:15:40 +0000 (21:15 +0000)]
Update to pgaccess 0.93.
Bruce Momjian [Sat, 12 Dec 1998 20:20:49 +0000 (20:20 +0000)]
New moddatetime contrib from Terry Mackintosh.
Bruce Momjian [Sat, 12 Dec 1998 19:57:51 +0000 (19:57 +0000)]
Add stdio for NULL define.
Thomas G. Lockhart [Tue, 8 Dec 1998 06:20:48 +0000 (06:20 +0000)]
Clean up a few elog() messages for aggregates and functions.
Thomas G. Lockhart [Tue, 8 Dec 1998 06:19:15 +0000 (06:19 +0000)]
Define routines and catalog entries for string min()/max() functions.
Extend new type coersion techniques to aggregates.
Clean up a few elog() messages.
Thomas G. Lockhart [Tue, 8 Dec 1998 06:18:34 +0000 (06:18 +0000)]
Define routines and catalog entries for string min()/max() functions.
Extend new type coersion techniques to aggregates.
Tom Lane [Sat, 5 Dec 1998 22:09:57 +0000 (22:09 +0000)]
Fix coredumping bug in pg_dump -z; also eliminate memory leaks
in the ACL code, and spell "GRANT RULE" correctly.
Apply patch from Oliver Elphick to not dump inherited constraints.
Apply patch from Constantin Teodorescu to dump table definitions with a
readable layout.
Thomas G. Lockhart [Fri, 4 Dec 1998 15:52:45 +0000 (15:52 +0000)]
These data types were removed before the last release.
Thomas G. Lockhart [Fri, 4 Dec 1998 15:36:51 +0000 (15:36 +0000)]
Include test for CASE expression.
Thomas G. Lockhart [Fri, 4 Dec 1998 15:34:49 +0000 (15:34 +0000)]
Implement CASE expression.
Tom Lane [Mon, 30 Nov 1998 00:30:05 +0000 (00:30 +0000)]
Portability fixes found needed for SunOS 4.1.x:
SunOS has tas(), but not memmove or strerror, and its sprintf() doesn't
return int. Also, older versions of GNU Make don't like rules with
empty left-hand sides...
Tom Lane [Sun, 29 Nov 1998 05:30:25 +0000 (05:30 +0000)]
Use autoconf to determine whether system has POSIX signals,
instead of relying on port's os.h to tell us. (Needed for HPUX
where system major version is not enough info.)
configure unsets USE_TK if X libraries not found.
doc/Makefile uses gzcat or zcat as found by autoconf.
Tom Lane [Sun, 29 Nov 1998 01:57:59 +0000 (01:57 +0000)]
Change exp() behavior to generate error on underflow rather
than silently returning zero on some machines. Correct float8 regress test
to agree. Also fix pow() overflow/underflow check to work correctly on
HPUX.
Tom Lane [Sun, 29 Nov 1998 01:53:54 +0000 (01:53 +0000)]
Portability fix for old SunOS releases: realloc(NULL, ...)
doesn't work there.
Tom Lane [Sun, 29 Nov 1998 01:51:56 +0000 (01:51 +0000)]
Portability fix for old SunOS releases: fflush(NULL)
doesn't work there. Fortunately the postmaster only has stdout and
stderr to flush.
Tom Lane [Sun, 29 Nov 1998 01:47:42 +0000 (01:47 +0000)]
pq_getstr didn't handle buffer overrun correctly; it would
fail to consume the rest of the input string, and worse it would write
one more byte than it should into the buffer, probably resulting in coredump.
Fortunately there's a correct implementation next door in pqcomprim.c.