Commit Graph

4261 Commits

Author SHA1 Message Date
Tom Lane 2ecbf94430 Retrofit hashtable and shared-mem-size-estimation bug fixes
into REL6_4.
1999-03-07 02:01:09 +00:00
Tom Lane 0fda84bfcd Oops, looks like my local copy of dt.c conflicted with
Thomas' changes...
1999-03-07 01:35:35 +00:00
Tom Lane 93c7e5026a Correct compile failures in REL6_4 datetime code. 1999-03-06 22:49:03 +00:00
Marc G. Fournier 35336849e7 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...
1999-03-04 15:40:16 +00:00
Thomas G. Lockhart 5e73ab70e6 Move common date/time macros to a central place. 1999-03-03 05:11:39 +00:00
Thomas G. Lockhart c569f2a068 Remove equivalence between datetime and float8. Wasn't worth the trouble
especially since datetime has too many reserved values to be a
 reasonable mapping.
1999-02-13 06:00:52 +00:00
Thomas G. Lockhart 2a6faa5368 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.
1999-02-13 05:59:34 +00:00
Tom Lane a0071f1393 Back-patch freebsd4 and '. ./conftest.sh' fixes into REL6_4. 1999-02-07 19:37:23 +00:00
Jan Wieck cff91fedff 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
1999-02-07 16:50:55 +00:00
Jan Wieck ccf330d67e Fixed not free'd heap tuple if BEFORE DELETE trigger procedure
returns new created tuple instead of the one given to it.

Jan
1999-02-07 15:13:13 +00:00
Jan Wieck 92c6b5d7b9 Fixed failed assertion happening in multiple action rules
when parsestate in makeRangeTable() already contains an
opened p_target_relation.

Jan
1999-02-02 12:56:55 +00:00
Tom Lane 575c0edaef Re-insert %.sl rule into Makefile.hpux ... seems it is not
quite as unused as I thought ... how embarrassing.
1999-01-17 00:19:33 +00:00
Bruce Momjian 3be6c6eb73 HISTORY update. 1999-01-03 06:50:17 +00:00
Bruce Momjian b5ac896c9c Mention 6.4.2 changes. 1999-01-02 16:07:06 +00:00
Thomas G. Lockhart 0a2744466e 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 :)
1998-12-31 16:34:48 +00:00
Bruce Momjian 1e64216587 Upgrade for 6.4.2. 1998-12-29 05:08:31 +00:00
Bruce Momjian 3e2e9efb59 Update for 6.4.2. 1998-12-29 05:06:22 +00:00
Bruce Momjian a2aae54222 Fix for version, update to 6.5. 1998-12-25 02:20:42 +00:00
Bruce Momjian 85e3bf1555 Add subversion mention 1998-12-23 14:39:04 +00:00
Thomas G. Lockhart 2e763e3e5f Fix problem with bad reference to tzn in GetCurrentAbsoluteTime().
Already was done in the main tree.
1998-12-19 03:23:18 +00:00
Bruce Momjian db9b12bf1b Included are patches for doc/README.mb and README.mb.jp.
Please apply to both trees.
--
Tatsuo Ishii
1998-12-18 18:01:36 +00:00
Bruce Momjian 47af45c631 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
1998-12-18 17:53:46 +00:00
Bruce Momjian 6c20009449 Upgrade for 6.4.1. 1998-12-18 16:51:39 +00:00
Bruce Momjian 59b25228d4 Update for 6.4.1 1998-12-18 07:33:26 +00:00
Bruce Momjian 9ea4191076 Fix for HAVE_LONG bug in snprintf.c. 1998-12-18 07:03:29 +00:00
Bruce Momjian a4c8fa7632 Upgrade for 6.4.1. 1998-12-18 05:38:29 +00:00
Bruce Momjian 66807b8cc5 Prepare for 6.4.1. 1998-12-18 05:25:58 +00:00
Bruce Momjian 673d7f6b4a Remove need for doc 'install man' in INSTALL file. install does both
html and man.
1998-12-17 16:37:35 +00:00
Bruce Momjian 38f255dc22 Upgrade to Pygress 2.2. 1998-12-17 01:43:39 +00:00
Bruce Momjian 363edf0282 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
1998-12-14 15:05:45 +00:00
Bruce Momjian 96ac4e6be4 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
1998-12-14 05:14:09 +00:00
Bruce Momjian be471a96b7 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
1998-12-14 04:51:34 +00:00
Thomas G. Lockhart 4d7ffd460a Add routines to help with single-byte char type handling. 1998-12-14 00:15:18 +00:00
Thomas G. Lockhart 4a7fb261db 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.
1998-12-14 00:14:53 +00:00
Thomas G. Lockhart f43e75a7c6 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.
1998-12-14 00:14:24 +00:00
Thomas G. Lockhart afa71c7661 Add routines to help with single-byte (internal) character type support. 1998-12-14 00:13:56 +00:00
Thomas G. Lockhart b5b5f0ddc9 Use the new implicit type coersion techniques for matching up types
between columns and DEFAULT clauses.
1998-12-14 00:13:26 +00:00
Thomas G. Lockhart 3f1c32e2f1 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.
1998-12-14 00:11:46 +00:00
Tom Lane 4f8458cd6b Build pltcl.so correctly on platforms that want dependent
shared libraries to be listed in the link command.
1998-12-13 23:47:17 +00:00
Tom Lane 91fc67dbef 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...
1998-12-13 20:08:59 +00:00
Tom Lane baaf65983a 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.
1998-12-13 20:08:24 +00:00
Bruce Momjian c47e831366 Add enable_plpgsql from Oliver. 1998-12-13 05:23:14 +00:00
Bruce Momjian 47f11d41b2 Cleanup patch from Oleg. 1998-12-13 05:15:10 +00:00
Bruce Momjian 94c5120849 Fix for lo_import crash. 1998-12-13 05:08:19 +00:00
Bruce Momjian 47cae78f7e 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
1998-12-13 04:39:00 +00:00
Bruce Momjian bc27c2e4ce New ecpg man page. 1998-12-13 03:54:13 +00:00
Bruce Momjian 4c71609c1c 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
1998-12-13 02:50:39 +00:00
Bruce Momjian f1a24505bb 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
1998-12-12 22:04:33 +00:00
Bruce Momjian fb6f7dc88d Fix prototype for 64-bit platforms. 1998-12-12 21:31:20 +00:00
Bruce Momjian 489572f288 update pgaccess to 0.93. 1998-12-12 21:23:21 +00:00