1. 31 Jan, 2008 5 commits
  2. 30 Jan, 2008 6 commits
  3. 29 Jan, 2008 6 commits
  4. 28 Jan, 2008 1 commit
  5. 27 Jan, 2008 1 commit
  6. 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
  7. 25 Jan, 2008 3 commits
  8. 24 Jan, 2008 1 commit
  9. 23 Jan, 2008 6 commits
  10. 22 Jan, 2008 1 commit
  11. 21 Jan, 2008 3 commits
  12. 20 Jan, 2008 2 commits
  13. 19 Jan, 2008 1 commit
    • Tom Lane's avatar
      Make pg_regress clean out the testtablespace directory only on Windows. · f10589e5
      Tom Lane authored
      On other platforms it's better to let the Makefile handle it, but we want
      the regression tests to be invokable without make on Windows.  A batch
      file would be a better solution, but no time for that before 8.3.
      Per my discovery that this breaks testing under SELinux, and subsequent
      discussion.
      f10589e5
  14. 18 Jan, 2008 2 commits
  15. 17 Jan, 2008 1 commit
    • Tom Lane's avatar
      Insert into getCopyDataMessage() the same logic that already existed in the · 70066eb1
      Tom Lane authored
      main code path for enlarging libpq's input buffer in one swoop when needing to
      read a long data message.  Without this, the code will double the buffer size,
      read more data, notice it still hasn't got the whole message, and repeat till
      it finally has a large enough buffer.  Which wastes a lot of data-moving
      effort and also memory (since malloc probably can't do anything very useful
      with the freed-up smaller buffers).  Not sure why this wasn't there already;
      certainly the COPY data path is a place where we're quite likely to see long
      data messages.  I'm not backpatching though, since this is just a marginal
      performance issue rather than a real bug.
      70066eb1