postgresql/src/include
Bruce Momjian c10e6bcbed Attempting to insert a value of 'now' into a datetime type
results in a bogus datetime value under AlphaLinux.  (Note that
the link to submit a port-specific bug on your website is broken)

-Test Case:
----------
testdb=> create table dttest (dt datetime);
testdb=> insert into dttest values ('now');

--------------------------------------------------------------------------


Solution:
---------
The basic problem is the typedefs of AbsoluteTime and RelativeTime,
which are both 'int32'.  These types appear to be used synonymously
with the 'time_t' type, which on AlphaLinux is typedef'd as a 'long
int', which is 64-bits (not 32).  The solution included here fixes
the datetime type (it now passes the regression test), but does not
pass the absolute and relative time regression tests.  Presumably, a
more thorough investigation of how these types are used is warranted.
The included patch is from the v6.3.2 source, but can be applied to
the v6.4.2 source.  Please note that there is also a RedHat-specific
patch distributed with the PostgreSQL source package from RedHat
that was applied first.

Rich Edwards
1999-03-14 16:44:02 +00:00
..
access Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
bootstrap Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
catalog Cleanup of hash functions in pg_proc. 1999-03-14 16:32:46 +00:00
commands Changes to fix/improve the dynamic loading on NT 1999-03-09 13:39:15 +00:00
executor Changes to fix/improve the dynamic loading on NT 1999-03-09 13:39:15 +00:00
lib Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
libpq From: Tatsuo Ishii <t-ishii@sra.co.jp> 1999-02-21 03:49:55 +00:00
mb Included patches make some enhancements to the multi-byte support. 1999-02-02 18:51:40 +00:00
nodes Modify mcxt.h so that it doesn't pull in half of creation. 1999-03-07 23:03:32 +00:00
optimizer geqo now at 11 tables 1999-03-07 12:00:40 +00:00
parser Make type 'regproc' binary-compatible with int4 and oid, 1999-03-10 05:05:58 +00:00
port We have tested the patches on three platforms: 1999-03-14 16:03:33 +00:00
regex Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
rewrite Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
storage A few further tweaks to shared memory space estimation. 1999-03-06 21:17:56 +00:00
tcop Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
utils Attempting to insert a value of 'now' into a datetime type 1999-03-14 16:44:02 +00:00
c.h Changes to fix/improve the dynamic loading on NT 1999-03-09 13:39:15 +00:00
config.h.in Have configure check for use of %lld for int64, and if that fails, check for 1999-03-08 04:17:33 +00:00
miscadmin.h Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
postgres.h Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
postgres_ext.h Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
rusagestub.h Change my-function-name-- to my_function_name, and optimizer renames. 1999-02-13 23:22:53 +00:00
strdup.h Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting. 1997-09-08 02:41:22 +00:00
version.h.in Optimizer rename. 1999-02-14 04:57:02 +00:00