Tom Lane [Sun, 7 Mar 1999 02:01:09 +0000 (02:01 +0000)]
Retrofit hashtable and shared-mem-size-estimation bug fixes
into REL6_4.
Tom Lane [Sun, 7 Mar 1999 01:35:35 +0000 (01:35 +0000)]
Oops, looks like my local copy of dt.c conflicted with
Thomas' changes...
Tom Lane [Sat, 6 Mar 1999 22:49:03 +0000 (22:49 +0000)]
Correct compile failures in REL6_4 datetime code.
Marc G. Fournier [Thu, 4 Mar 1999 15:40:16 +0000 (15:40 +0000)]
A fix for the int8 problem under FreeBSD ... if __FreeBSD__ is defined,
then use %qd vs %lld ...
Regression test for int8 passes with this applied...
Similar change should be applied to -CURRENT, am just focusing on v6.4.3
right now though...
Thomas G. Lockhart [Wed, 3 Mar 1999 05:11:39 +0000 (05:11 +0000)]
Move common date/time macros to a central place.
Thomas G. Lockhart [Sat, 13 Feb 1999 06:00:52 +0000 (06:00 +0000)]
Remove equivalence between datetime and float8. Wasn't worth the trouble
especially since datetime has too many reserved values to be a
reasonable mapping.
Thomas G. Lockhart [Sat, 13 Feb 1999 05:59:34 +0000 (05:59 +0000)]
This patch fixes some problems in date handling for atypical dates.
Here is a summary:
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...
Move common macros to dt.h.
Tom Lane [Sun, 7 Feb 1999 19:37:23 +0000 (19:37 +0000)]
Back-patch freebsd4 and '. ./conftest.sh' fixes into REL6_4.
Jan Wieck [Sun, 7 Feb 1999 16:50:55 +0000 (16:50 +0000)]
Changed ExecConstraints() and ExecRelCheck() to cache constraint
qualification trees in the execution state to avoid memory exhaustion
on INSERT, UPDATE and COPY to tables with check constraints. This
also speeds up those operations substantial because the nodeToString()
for the constraints ccbin is only performed once per query.
Jan
Jan Wieck [Sun, 7 Feb 1999 15:13:13 +0000 (15:13 +0000)]
Fixed not free'd heap tuple if BEFORE DELETE trigger procedure
returns new created tuple instead of the one given to it.
Jan
Jan Wieck [Tue, 2 Feb 1999 12:56:55 +0000 (12:56 +0000)]
Fixed failed assertion happening in multiple action rules
when parsestate in makeRangeTable() already contains an
opened p_target_relation.
Jan
Tom Lane [Sun, 17 Jan 1999 00:19:33 +0000 (00:19 +0000)]
Re-insert %.sl rule into Makefile.hpux ... seems it is not
quite as unused as I thought ... how embarrassing.
Bruce Momjian [Sun, 3 Jan 1999 06:50:17 +0000 (06:50 +0000)]
HISTORY update.
Bruce Momjian [Sat, 2 Jan 1999 16:07:06 +0000 (16:07 +0000)]
Mention 6.4.2 changes.
Thomas G. Lockhart [Thu, 31 Dec 1998 16:34:48 +0000 (16:34 +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 :)
Bruce Momjian [Tue, 29 Dec 1998 05:08:31 +0000 (05:08 +0000)]
Upgrade for 6.4.2.
Bruce Momjian [Tue, 29 Dec 1998 05:06:22 +0000 (05:06 +0000)]
Update for 6.4.2.
Bruce Momjian [Fri, 25 Dec 1998 02:20:42 +0000 (02:20 +0000)]
Fix for version, update to 6.5.
Bruce Momjian [Wed, 23 Dec 1998 14:39:04 +0000 (14:39 +0000)]
Add subversion mention
Thomas G. Lockhart [Sat, 19 Dec 1998 03:23:18 +0000 (03:23 +0000)]
Fix problem with bad reference to tzn in GetCurrentAbsoluteTime().
Already was done in the main tree.
Bruce Momjian [Fri, 18 Dec 1998 18:01:36 +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:53:46 +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 16:51:39 +0000 (16:51 +0000)]
Upgrade for 6.4.1.
Bruce Momjian [Fri, 18 Dec 1998 07:33:26 +0000 (07:33 +0000)]
Update for 6.4.1
Bruce Momjian [Fri, 18 Dec 1998 07:03:29 +0000 (07:03 +0000)]
Fix for HAVE_LONG bug in snprintf.c.
Bruce Momjian [Fri, 18 Dec 1998 05:38:29 +0000 (05:38 +0000)]
Upgrade for 6.4.1.
Bruce Momjian [Fri, 18 Dec 1998 05:25:58 +0000 (05:25 +0000)]
Prepare for 6.4.1.
Bruce Momjian [Thu, 17 Dec 1998 16:37:35 +0000 (16:37 +0000)]
Remove need for doc 'install man' in INSTALL file. install does both
html and man.
Bruce Momjian [Thu, 17 Dec 1998 01:43:39 +0000 (01:43 +0000)]
Upgrade to Pygress 2.2.
Bruce Momjian [Mon, 14 Dec 1998 15:05:45 +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
Bruce Momjian [Mon, 14 Dec 1998 05:14:09 +0000 (05:14 +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:51:34 +0000 (04:51 +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:15:18 +0000 (00:15 +0000)]
Add routines to help with single-byte char type handling.
Thomas G. Lockhart [Mon, 14 Dec 1998 00:14:53 +0000 (00:14 +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 [Mon, 14 Dec 1998 00:14:24 +0000 (00:14 +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 [Mon, 14 Dec 1998 00:13:56 +0000 (00:13 +0000)]
Add routines to help with single-byte (internal) character type support.
Thomas G. Lockhart [Mon, 14 Dec 1998 00:13:26 +0000 (00:13 +0000)]
Use the new implicit type coersion techniques for matching up types
between columns and DEFAULT clauses.
Thomas G. Lockhart [Mon, 14 Dec 1998 00:11:46 +0000 (00:11 +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 23:47:17 +0000 (23:47 +0000)]
Build pltcl.so correctly on platforms that want dependent
shared libraries to be listed in the link command.
Tom Lane [Sun, 13 Dec 1998 20:08:59 +0000 (20:08 +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:08:24 +0000 (20:08 +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:23:14 +0000 (05:23 +0000)]
Add enable_plpgsql from Oliver.
Bruce Momjian [Sun, 13 Dec 1998 05:15:10 +0000 (05:15 +0000)]
Cleanup patch from Oleg.
Bruce Momjian [Sun, 13 Dec 1998 05:08:19 +0000 (05:08 +0000)]
Fix for lo_import crash.
Bruce Momjian [Sun, 13 Dec 1998 04:39:00 +0000 (04:39 +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 03:54:13 +0000 (03:54 +0000)]
New ecpg man page.
Bruce Momjian [Sun, 13 Dec 1998 02:50:39 +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:33 +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:31:20 +0000 (21:31 +0000)]
Fix prototype for 64-bit platforms.
Bruce Momjian [Sat, 12 Dec 1998 21:23:21 +0000 (21:23 +0000)]
update pgaccess to 0.93.
Bruce Momjian [Sat, 12 Dec 1998 19:58:13 +0000 (19:58 +0000)]
Add stdio for NULL define.
Tom Lane [Sat, 5 Dec 1998 23:09:06 +0000 (23:09 +0000)]
No complaints heard about the main branch, so I'm committing this
to REL6_4 as well...
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 [Sat, 5 Dec 1998 22:11:08 +0000 (22:11 +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
more readable layout.
Tom Lane [Mon, 30 Nov 1998 00:31:20 +0000 (00:31 +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 01:59:00 +0000 (01:59 +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:54:34 +0000 (01:54 +0000)]
Portability fix for old SunOS releases: realloc(NULL, ...)
doesn't work there.
Tom Lane [Sun, 29 Nov 1998 01:52:32 +0000 (01:52 +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:48:42 +0000 (01:48 +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.
Thomas G. Lockhart [Wed, 25 Nov 1998 02:56:54 +0000 (02:56 +0000)]
csh and sh examples were reversed.
Update the csh example with new comments and fixes from Thomas' linux box.
Thomas G. Lockhart [Tue, 24 Nov 1998 05:50:42 +0000 (05:50 +0000)]
Additional fixes for mixed-case table names from Billy Allie.
Same changes I tried to commit last time.
Hope the new version of cvs keeps it down...
Bruce Momjian [Tue, 24 Nov 1998 03:48:55 +0000 (03:48 +0000)]
Update platform FAQ's.
Bruce Momjian [Tue, 24 Nov 1998 02:05:14 +0000 (02:05 +0000)]
Vadim's OR fix.
Jan Wieck [Mon, 23 Nov 1998 17:44:21 +0000 (17:44 +0000)]
Fixed bug in unknown module. Changed builtin function names
from SPI_* to spi_*.
Jan 11/23/1998
Tom Lane [Mon, 23 Nov 1998 04:44:22 +0000 (04:44 +0000)]
modify configure so that template/.similar entries can be
selected when they match a prefix of the value. The previous method,
which stripped all version data from and then tried to match that
against .similar entries, was entirely useless when .similar contained
several entries for different version numbers of a single OS name.
Tom Lane [Sun, 22 Nov 1998 22:05:20 +0000 (22:05 +0000)]
Need to touch parse.h so it is not out of date with
respect to gram.y.
Thomas G. Lockhart [Tue, 17 Nov 1998 14:42:52 +0000 (14:42 +0000)]
Additional fix for creating tables with constraints
when table name is mixed-case from Billy Allie.
Tom Lane [Sun, 15 Nov 1998 07:11:29 +0000 (07:11 +0000)]
Fix a couple of bugs involving calling fmtID() twice in
a single printf() ... it'd work if fmtId() didn't use a static return area...
Thomas G. Lockhart [Thu, 12 Nov 1998 15:34:30 +0000 (15:34 +0000)]
Fix test for table existance to allow mixed-case and whitespace in
the table name. Problem reported by Billy Allie.
Tom Lane [Thu, 12 Nov 1998 05:25:05 +0000 (05:25 +0000)]
Fix at least a few shared-library problems on Linux.
We have not seen the end of this issue :-(.
Tom Lane [Thu, 12 Nov 1998 03:46:14 +0000 (03:46 +0000)]
Back-patch EXPLAIN VERBOSE coredump fix into 6.4
Bruce Momjian [Mon, 9 Nov 1998 02:49:35 +0000 (02:49 +0000)]
Fix for NOT in where clause causing crash.
Bruce Momjian [Sat, 7 Nov 1998 03:26:29 +0000 (03:26 +0000)]
update todo
Thomas G. Lockhart [Fri, 6 Nov 1998 15:56:42 +0000 (15:56 +0000)]
Add "-N" flag to force double quotes around identifiers.
This is the default, but the new flag will allow overriding an alias,
for example. So psql -n -N will put in the double quotes,
and psql -n can be an alias for psql.
Also, add a few braces around a nested single-line conditional construct
to suppress compiler warnings about "an ambiguous else".
Marc G. Fournier [Fri, 6 Nov 1998 04:10:26 +0000 (04:10 +0000)]
Upgrade to 0.91 of pgaccess ...
Marc G. Fournier [Wed, 4 Nov 1998 22:23:12 +0000 (22:23 +0000)]
Just added a line...allows me to test things out...
Thomas G. Lockhart [Wed, 4 Nov 1998 16:24:32 +0000 (16:24 +0000)]
Test for and handle NULL arguments to mylog() print statements.
Include definition for _IN_ADDR_T if INADDR_NONE is not defined.
Thomas G. Lockhart [Wed, 4 Nov 1998 16:22:09 +0000 (16:22 +0000)]
Somehow had the solaris template names reversed. Probably was something
fixed in src/configure.in a while ago.
Thomas G. Lockhart [Mon, 2 Nov 1998 15:54:27 +0000 (15:54 +0000)]
Fix email addres for Dan Horak per his request.
Thomas G. Lockhart [Mon, 2 Nov 1998 15:53:02 +0000 (15:53 +0000)]
Move configuration info to after installation procedure.
Include only the current release in the release notes section.
Thomas G. Lockhart [Mon, 2 Nov 1998 15:52:14 +0000 (15:52 +0000)]
Include instructions on perl installation.
Already in product docs since they were built on my machine.
Bruce Momjian [Mon, 2 Nov 1998 15:28:36 +0000 (15:28 +0000)]
Fix for relname.data from SHIOZAKI Takehiko
Marc G. Fournier [Mon, 2 Nov 1998 05:30:10 +0000 (05:30 +0000)]
slight mods required for freebsd (elf vs aout stuff)
Marc G. Fournier [Sun, 1 Nov 1998 16:55:02 +0000 (16:55 +0000)]
Remove various files that were moved to various subdirectories...
Requested by: Peter T Mount peter@retep.org.uk
Thomas G. Lockhart [Sat, 31 Oct 1998 09:36:38 +0000 (09:36 +0000)]
Cleanup for v6.4 release.
Make new file current.sgml to hold release info for the current release.
Should be moved to release.sgml before filling with next release info.
Thomas G. Lockhart [Sat, 31 Oct 1998 09:35:19 +0000 (09:35 +0000)]
Try to get only html and gif files into tarballs.
Was picking up subdirectories and other garbage.
Thomas G. Lockhart [Sat, 31 Oct 1998 09:32:55 +0000 (09:32 +0000)]
New versions for v6.4 release.
Thomas G. Lockhart [Sat, 31 Oct 1998 09:31:58 +0000 (09:31 +0000)]
Generate from installation.sgml -> installation.rtf -> ApplixWare
-> INSTALL with some cleanup in vi.
Marc G. Fournier [Sat, 31 Oct 1998 04:10:53 +0000 (04:10 +0000)]
Thanks to Vince Vielhaber <vev@michvhf.com>
Here is an os2 psql client, with libpq.a library
Marc G. Fournier [Sat, 31 Oct 1998 04:07:00 +0000 (04:07 +0000)]
oops, forgot one part of the patch...remove 'false' setting to ELF_SYS...
Marc G. Fournier [Sat, 31 Oct 1998 03:58:55 +0000 (03:58 +0000)]
Minor FreeBSD fixes put in place
From: SHIOZAKI Takehiko <takehi-s@ascii.co.jp>
I tried snapshot(Oct30) and made some patches.
# I think that it is confused to manage both Makefile.shlib and
# makefiles/Makefile.*, don't you?
* configure
Now FreeBSD 2.X is not supported..., so I added its entry.
If ELF_SYSTEM is set, gmake treat it defined even though
it is "false". So nothing should be set to use "ifdef".
BSD_SHLIB etc. may have same problems.
* Makefile.shlib
As you said, FreeBSD entry is much like BSD's.
I only added ELF_SYSTEM code.
* makefiles/Makefile.freebsd
Ifdef/else/endif can not be indented with TABs.
Bruce Momjian [Sat, 31 Oct 1998 02:06:08 +0000 (02:06 +0000)]
s_lock patch from Ryan.
Tom Lane [Fri, 30 Oct 1998 22:36:00 +0000 (22:36 +0000)]
Mention --without-CXX option in online help.
Thomas G. Lockhart [Fri, 30 Oct 1998 19:37:19 +0000 (19:37 +0000)]
Minor editing and markup changes as a result of preparing the Postscript
documentation for v6.4.
Bigger updates to the installation instructions (install and config).
Thomas G. Lockhart [Fri, 30 Oct 1998 19:34:40 +0000 (19:34 +0000)]
Minor cleanup in markup, especially in the Output section.
Bruce Momjian [Fri, 30 Oct 1998 17:14:35 +0000 (17:14 +0000)]
Updated TODO.
Tom Lane [Fri, 30 Oct 1998 15:05:23 +0000 (15:05 +0000)]
Behave reasonably on a system without shared libraries.
Thomas G. Lockhart [Fri, 30 Oct 1998 08:08:50 +0000 (08:08 +0000)]
Remove obsolete file listing support resources which has not been updated
in a year an a half. Much of the info was wrong and is covered more
correctly elsewhere.
Thomas G. Lockhart [Fri, 30 Oct 1998 08:04:52 +0000 (08:04 +0000)]
Minor fix for Jan to remove claim in SPI and trigger chapters that
Postgres is missing a procedural language. He correctly points out
that we now have two (thanks to him, but he modestly didn't mention
that).
Thomas G. Lockhart [Fri, 30 Oct 1998 07:56:11 +0000 (07:56 +0000)]
User's Guide for v6.4.
Has three pages of goofy layout at the end. Can't figure out what Applix
doesn't like about it, so giving up for now.
Marc G. Fournier [Fri, 30 Oct 1998 04:54:06 +0000 (04:54 +0000)]
Okay, this shoudl provide a fix for the freebsd problem...
Added a ELF_SYS variable and check to configure.in...