1. 14 6月, 2012 1 次提交
    • T
      Stamp library minor versions for 9.3. · 357c5493
      Tom Lane 提交于
      This includes fixing the MSVC copy of ecpg/preproc's version info, which
      seems to have been overlooked repeatedly.  Can't we fix that so there are
      not two copies??
      357c5493
  2. 11 6月, 2012 1 次提交
  3. 24 4月, 2012 1 次提交
  4. 08 4月, 2012 1 次提交
  5. 16 3月, 2012 1 次提交
  6. 15 3月, 2012 1 次提交
  7. 02 1月, 2012 1 次提交
  8. 19 12月, 2011 1 次提交
  9. 11 12月, 2011 1 次提交
  10. 19 6月, 2011 1 次提交
  11. 10 6月, 2011 1 次提交
  12. 11 5月, 2011 1 次提交
    • T
      Prevent datebsearch() from crashing on base == NULL && nel == 0. · 2e82d0b3
      Tom Lane 提交于
      Normally nel == 0 works okay because the initial value of "last" will be
      less than "base"; but if "base" is zero then the calculation wraps around
      and we have a very large (unsigned) value for "last", so that the loop can
      be entered and we get a SIGSEGV on a bogus pointer.
      
      This is certainly the proximate cause of the recent reports of Windows
      builds crashing on 'infinity'::timestamp --- evidently, they're either not
      setting an active timezonetktbl, or setting an empty one.  It's not yet
      clear to me why it's only happening on Windows and not happening on any
      buildfarm member.  But even if that's due to some bug elsewhere, it seems
      wise for this function to not choke on the powerup values of
      timezonetktbl/sztimezonetktbl.
      
      I also changed the copy of this code in ecpglib, although I am not sure
      whether it's exposed to a similar hazard.
      
      Per report and stack trace from Richard Broersma.
      2e82d0b3
  13. 29 4月, 2011 1 次提交
  14. 20 4月, 2011 1 次提交
  15. 02 1月, 2011 1 次提交
  16. 22 9月, 2010 1 次提交
  17. 21 9月, 2010 1 次提交
  18. 17 8月, 2010 1 次提交
  19. 02 8月, 2010 1 次提交
    • T
      Fix an ancient typo that prevented the detection of conflicting fields when · fbcf2cfb
      Tom Lane 提交于
      interval input "invalid" was specified together with other fields.  Spotted
      by Neil Conway with the help of a clang warning.  Although this has been
      wrong since the interval code was written more than 10 years ago, it doesn't
      affect anything beyond which error message you get for a wrong input, so not
      worth back-patching very far.
      fbcf2cfb
  20. 13 7月, 2010 1 次提交
  21. 16 6月, 2010 1 次提交
  22. 09 5月, 2010 2 次提交
    • T
      Adjust comments about avoiding use of printf's %.*s. · ed437e2b
      Tom Lane 提交于
      My initial impression that glibc was measuring the precision in characters
      (which is what the Linux man page says it does) was incorrect.  It does take
      the precision to be in bytes, but it also tries to truncate the string at a
      character boundary.  The bottom line remains the same: it will mess up
      if the string is not in the encoding it expects, so we need to avoid %.*s
      anytime there's a significant risk of that.  Previous code changes are still
      good, but adjust the comments to reflect this knowledge.  Per research by
      Hernan Gonzalez.
      ed437e2b
    • T
      Work around a subtle portability problem in use of printf %s format. · 54cd4f04
      Tom Lane 提交于
      Depending on which spec you read, field widths and precisions in %s may be
      counted either in bytes or characters.  Our code was assuming bytes, which
      is wrong at least for glibc's implementation, and in any case libc might
      have a different idea of the prevailing encoding than we do.  Hence, for
      portable results we must avoid using anything more complex than just "%s"
      unless the string to be printed is known to be all-ASCII.
      
      This patch fixes the cases I could find, including the psql formatting
      failure reported by Hernan Gonzalez.  In HEAD only, I also added comments
      to some places where it appears safe to continue using "%.*s".
      54cd4f04
  23. 03 2月, 2010 1 次提交
  24. 03 1月, 2010 1 次提交
  25. 03 9月, 2009 1 次提交
  26. 07 8月, 2009 1 次提交
  27. 13 7月, 2009 1 次提交
  28. 11 6月, 2009 1 次提交
  29. 26 5月, 2009 1 次提交
  30. 21 5月, 2009 2 次提交
  31. 22 3月, 2009 1 次提交
    • T
      Remove the datetime keywords ABSTIME and RELTIME, which we'd been treating as · 0fd85d78
      Tom Lane 提交于
      noise words for the last twelve years, for compatibility with Berkeley-era
      output formatting of the special INVALID values for those datatypes.
      Considering that the datatypes themselves have been deprecated for awhile,
      this is taking backwards compatibility a little far.  Per gripe from Josh
      Berkus.
      0fd85d78
  32. 05 2月, 2009 1 次提交
  33. 04 2月, 2009 1 次提交
  34. 02 2月, 2009 1 次提交
  35. 02 1月, 2009 1 次提交
  36. 27 11月, 2008 2 次提交
  37. 18 7月, 2008 1 次提交