1. 02 Feb, 2008 3 commits
  2. 01 Feb, 2008 4 commits
  3. 31 Jan, 2008 13 commits
  4. 30 Jan, 2008 6 commits
  5. 29 Jan, 2008 6 commits
  6. 28 Jan, 2008 1 commit
  7. 27 Jan, 2008 1 commit
  8. 26 Jan, 2008 1 commit
    • Tom Lane's avatar
      Change StatementCancelHandler() to check the DoingCommandRead flag to decide · 6322e844
      Tom Lane authored
      whether to execute an immediate interrupt, rather than testing whether
      LockWaitCancel() cancelled a lock wait.  The old way misclassified the case
      where we were blocked in ProcWaitForSignal(), and arguably would misclassify
      any other future additions of new ImmediateInterruptOK states too.  This
      allows reverting the old kluge that gave LockWaitCancel() a return value,
      since no callers care anymore.  Improve comments in the various
      implementations of PGSemaphoreLock() to explain that on some platforms, the
      assumption that semop() exits after a signal is wrong, and so we must ensure
      that the signal handler itself throws elog if we want cancel or die interrupts
      to be effective.  Per testing related to bug #3883, though this patch doesn't
      solve those problems fully.
      
      Perhaps this change should be back-patched, but since pre-8.3 branches aren't
      really relying on autovacuum to respond to SIGINT, it doesn't seem critical
      for them.
      6322e844
  9. 25 Jan, 2008 3 commits
  10. 24 Jan, 2008 1 commit
  11. 23 Jan, 2008 1 commit
    • Tom Lane's avatar
      Prevent integer overflow within the integer-datetimes version of · b9ff7443
      Tom Lane authored
      TimestampTzPlusMilliseconds.  An integer argument of more than INT_MAX/1000
      milliseconds (ie, about 35 minutes) would provoke a wrong result, resulting
      in incorrect enforcement of statement_timestamp values larger than that.
      Bug was introduced in my rewrite of 2006-06-20, which fixed some other
      overflow risks, but missed this one :-(  Per report from Elein.
      b9ff7443