1. 13 8月, 2005 1 次提交
  2. 22 7月, 2005 3 次提交
  3. 21 7月, 2005 4 次提交
  4. 30 6月, 2005 1 次提交
    • T
      Clean up the rather historically encumbered interface to now() and · b5f7cff8
      Tom Lane 提交于
      current time: provide a GetCurrentTimestamp() function that returns
      current time in the form of a TimestampTz, instead of separate time_t
      and microseconds fields.  This is what all the callers really want
      anyway, and it eliminates low-level dependencies on AbsoluteTime,
      which is a deprecated datatype that will have to disappear eventually.
      b5f7cff8
  5. 15 6月, 2005 2 次提交
    • B
      This patch makes it possible to use the full set of timezones when doing · 0851a6fb
      Bruce Momjian 提交于
      "AT TIME ZONE", and not just the shorlist previously available. For
      example:
      
      SELECT CURRENT_TIMESTAMP AT TIME ZONE 'Europe/London';
      
      works fine now. It will also obey whatever DST rules were in effect at
      just that date, which the previous implementation did not.
      
      It also supports the AT TIME ZONE on the timetz datatype. The whole
      handling of DST is a bit bogus there, so I chose to make it use whatever
      DST rules are in effect at the time of executig the query. not sure if
      anybody is actuallyi *using* timetz though, it seems pretty
      unpredictable just because of this...
      
      Magnus Hagander
      0851a6fb
    • B
      Add pg_postmaster_start_time() function. · f5835b4b
      Bruce Momjian 提交于
      Euler Taveira de Oliveira
      Matthias Schmidt
      f5835b4b
  6. 26 5月, 2005 1 次提交
  7. 24 5月, 2005 2 次提交
  8. 01 1月, 2005 1 次提交
    • P
      · 2ff50159
      PostgreSQL Daemon 提交于
      Tag appropriate files for rc3
      
      Also performed an initial run through of upgrading our Copyright date to
      extend to 2005 ... first run here was very simple ... change everything
      where: grep 1996-2004 && the word 'Copyright' ... scanned through the
      generated list with 'less' first, and after, to make sure that I only
      picked up the right entries ...
      2ff50159
  9. 29 8月, 2004 2 次提交
  10. 21 5月, 2004 1 次提交
  11. 02 5月, 2004 1 次提交
  12. 22 3月, 2004 1 次提交
  13. 15 2月, 2004 1 次提交
  14. 25 12月, 2003 1 次提交
    • B
      > > I have no idea if this in Oracle or not. But it's something I · 1c757c49
      Bruce Momjian 提交于
      > > needed, and other people in the past asked about it too.
      >
      > It is in Oracle, but you aren't exactly on the spot.  It should be
      >
      > IYYY - 4 digits  ('2003')
      > IYY  - 3 digits  ('003')
      > IY   - 2 digits  ('03')
      > I    - 1 digit   ('3')
      
      Here is an updated patch that does that.
      
      Kurt Roeckx
      1c757c49
  15. 30 11月, 2003 1 次提交
    • P
      · 55b11325
      PostgreSQL Daemon 提交于
      make sure the $Id tags are converted to $PostgreSQL as well ...
      55b11325
  16. 04 8月, 2003 1 次提交
  17. 13 5月, 2003 1 次提交
  18. 05 9月, 2002 1 次提交
  19. 04 8月, 2002 1 次提交
  20. 21 6月, 2002 1 次提交
  21. 23 4月, 2002 1 次提交
  22. 22 4月, 2002 1 次提交
    • T
      Support alternate storage scheme of 64-bit integer for date/time types. · 547df0cc
      Thomas G. Lockhart 提交于
       Use "--enable-integer-datetimes" in configuration to use this rather
       than the original float8 storage. I would recommend the integer-based
       storage for any platform on which it is available. We perhaps should
       make this the default for the production release.
      Change timezone(timestamptz) results to return timestamp rather than
       a character string. Formerly, we didn't have a way to represent
       timestamps with an explicit time zone other than freezing the info into
       a string. Now, we can reasonably omit the explicit time zone from the
       result and return a timestamp with values appropriate for the specified
       time zone. Much cleaner, and if you need the time zone in the result
       you can put it into a character string pretty easily anyway.
      Allow fractional seconds in date/time types even for dates prior to 1BC.
      Limit timestamp data types to 6 decimal places of precision. Just right
       for a micro-second storage of int8 date/time types, and reduces the
       number of places ad-hoc rounding was occuring for the float8-based types.
      Use lookup tables for precision/rounding calculations for timestamp and
       interval types.  Formerly used pow() to calculate the desired value but
       with a more limited range there is no reason to not type in a lookup
       table. Should be *much* better performance, though formerly there were
       some optimizations to help minimize the number of times pow() was called.
      Define a HAVE_INT64_TIMESTAMP variable. Based on the configure option
       "--enable-integer-datetimes" and the existing internal INT64_IS_BUSTED.
      Add explicit date/interval operators and functions for addition and
       subtraction. Formerly relied on implicit type promotion from date to
       timestamp with time zone.
      Change timezone conversion functions for the timetz type from "timetz()"
       to "timezone()". This is consistant with other time zone coersion
       functions for other types.
      Bump the catalog version to 200204201.
      Fix up regression tests to reflect changes in fractional seconds
       representation for date/times in BC eras.
      All regression tests pass on my Linux box.
      547df0cc
  23. 06 11月, 2001 1 次提交
  24. 28 10月, 2001 1 次提交
  25. 25 10月, 2001 1 次提交
  26. 19 10月, 2001 1 次提交
    • T
      Accept an INTERVAL argument for SET TIME ZONE per SQL99. · 9310075a
      Thomas G. Lockhart 提交于
       Modified the parser and the SET handlers to use full Node structures
       rather than simply a character string argument.
      Implement INTERVAL() YEAR TO MONTH (etc) syntax per SQL99.
       Does not yet accept the goofy string format that goes along with, but
       this should be fairly straight forward to fix now as a bug or later
       as a feature.
      Implement precision for the INTERVAL() type.
       Use the typmod mechanism for both of INTERVAL features.
      Fix the INTERVAL syntax in the parser:
       opt_interval was in the wrong place.
      INTERVAL is now a reserved word, otherwise we get reduce/reduce errors.
      Implement an explicit date_part() function for TIMETZ.
       Should fix coersion problem with INTERVAL reported by Peter E.
      Fix up some error messages for date/time types.
       Use all caps for type names within message.
      Fix recently introduced side-effect bug disabling 'epoch' as a recognized
       field for date_part() etc. Reported by Peter E. (??)
      Bump catalog version number.
      Rename "microseconds" current transaction time field
       from ...Msec to ...Usec. Duh!
      date/time regression tests updated for reference platform, but a few
       changes will be necessary for others.
      9310075a
  27. 03 10月, 2001 2 次提交
    • T
      Neatnik fetishism. · a390975c
      Tom Lane 提交于
      a390975c
    • T
      Implement precision support for timestamp and time, both with and without · 3e1beda2
      Thomas G. Lockhart 提交于
       time zones.
      SQL99 spec requires a default of zero (round to seconds) which is set
       in gram.y as typmod is set in the parse tree. We *could* change to a
       default of either 6 (for internal compatibility with previous versions)
       or 2 (for external compatibility with previous versions).
      Evaluate entries in pg_proc wrt the iscachable attribute for timestamp and
       other date/time types. Try to recognize cases where side effects like the
       current time zone setting may have an effect on results to decide whether
       something is cachable or not.
      3e1beda2
  28. 28 9月, 2001 1 次提交
    • T
      Measure the current transaction time to milliseconds. · 6f58115d
      Thomas G. Lockhart 提交于
      Define a new function, GetCurrentTransactionStartTimeUsec() to get the time
       to this precision.
      Allow now() and timestamp 'now' to use this higher precision result so
       we now have fractional seconds in this "constant".
      Add timestamp without time zone type.
      Move previous timestamp type to timestamp with time zone.
      Accept another ISO variant for date/time values: yyyy-mm-ddThh:mm:ss
       (note the "T" separating the day from hours information).
      Remove 'current' from date/time types; convert to 'now' in input.
      Separate time and timetz regression tests.
      Separate timestamp and timestamptz regression test.
      6f58115d
  29. 06 9月, 2001 1 次提交
    • B
      - new to_char(interval, text) · 2a34134b
      Bruce Momjian 提交于
       - new millisecond (ms) and microsecond (us) support
       - more robus parsing from string - used is separator checking for
         non-exact formats like to_date('2001-9-1', 'YYYY-MM-DD')
       - SGML docs are included
      
      Karel Zak
      2a34134b
  30. 22 3月, 2001 1 次提交
  31. 15 3月, 2001 1 次提交