Skip to content
Snippets Groups Projects
  1. Jan 02, 2000
  2. Sep 21, 1999
  3. Jul 17, 1999
  4. Jul 16, 1999
  5. Jul 15, 1999
  6. Jul 14, 1999
  7. May 25, 1999
  8. Mar 14, 1999
    • Bruce Momjian's avatar
      Attempting to insert a value of 'now' into a datetime type · c10e6bcb
      Bruce Momjian authored
      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
      c10e6bcb
  9. Feb 21, 1999
    • Marc G. Fournier's avatar
      · 8c3e8a8a
      Marc G. Fournier authored
      From: Tatsuo Ishii <t-ishii@sra.co.jp>
      
      Ok. I made patches replacing all of "#if FALSE" or "#if 0" to "#ifdef
      NOT_USED" for current. I have tested these patches in that the
      postgres binaries are identical.
      8c3e8a8a
  10. Feb 14, 1999
  11. Oct 08, 1998
  12. Sep 01, 1998
  13. Jun 15, 1998
  14. Feb 26, 1998
  15. Feb 11, 1998
  16. Jan 07, 1998
  17. Jan 05, 1998
  18. Sep 20, 1997
  19. Sep 08, 1997
  20. Sep 07, 1997
  21. Sep 05, 1997
  22. Aug 19, 1997
  23. Aug 13, 1997
  24. Aug 12, 1997
  25. Jul 29, 1997
  26. Apr 20, 1997
  27. Apr 04, 1997
  28. Apr 02, 1997
    • Marc G. Fournier's avatar
      From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov> · 2ab34dfe
      Marc G. Fournier authored
      Subject: [HACKERS] More date time functions
      
      Here are some additional patches mostly related to the date and time
      data types. It includes some type conversion routines to move between
      the different date types and some other date manipulation routines such
      as date_part(units,datetime).
      
      I noticed Edmund Mergl et al's neat trick for getting function overloading
      for builtin functions, so started to use that for the date and time stuff.
      Later, if someone figures out how to get function overloading directly
      for internal C code, then we can move to that technique.
      
      These patches include documentation updates (don't faint!) for the built-in
      man page. Doesn't yet include mention of timestamp, since I don't know
      much about it and since it may change a bit to become a _real_ ANSI timestamp
      which would include parser support for the declaration syntax (what do you
      think, Dan?).
      
      The patches were developed on the 970330 release, but have been rebuilt
      off of the 970402 release. The first patch below is to get libpq to compile,
      on my Linux box, but is not related to the rest of the patches and you can
      choose not to apply that one at this time. Thanks in advance, scrappy!
      2ab34dfe
  29. Mar 15, 1997
  30. Feb 14, 1997
  31. Nov 10, 1996
  32. Nov 06, 1996
  33. Jul 09, 1996
Loading