1. 28 Jan, 2008 1 commit
  2. 27 Jan, 2008 1 commit
  3. 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
  4. 25 Jan, 2008 3 commits
  5. 24 Jan, 2008 1 commit
  6. 23 Jan, 2008 6 commits
  7. 22 Jan, 2008 1 commit
  8. 21 Jan, 2008 3 commits
  9. 20 Jan, 2008 2 commits
  10. 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
  11. 18 Jan, 2008 2 commits
  12. 17 Jan, 2008 6 commits
    • 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
    • Tom Lane's avatar
      Fix subselect.c to avoid assuming that a SubLink's testexpr references each · a44174cf
      Tom Lane authored
      subquery output column exactly once left-to-right.  Although this is the case
      in the original parser output, it might not be so after rewriting and
      constant-folding, as illustrated by bug #3882 from Jan Mate.  Instead
      scan the subquery's target list to obtain needed per-column information;
      this is duplicative of what the parser did, but only a couple dozen lines
      need be copied, and we can clean up a couple of notational uglinesses.
      Bug was introduced in 8.2 as part of revision of SubLink representation.
      a44174cf
    • Tom Lane's avatar
      Fix ALTER INDEX RENAME so that if the index belongs to a unique or primary key · 0df7717f
      Tom Lane authored
      constraint, the constraint is renamed as well.  This avoids inconsistent
      situations that could confuse pg_dump (not to mention humans).  We might at
      some point provide ALTER TABLE RENAME CONSTRAINT as a more general solution,
      but there seems no reason not to allow doing it this way too.  Per bug #3854
      and related discussions.
      0df7717f
    • Bruce Momjian's avatar
      Update Japanese FAQ. · d07de6c4
      Bruce Momjian authored
      Jun Kuwamura
      d07de6c4
    • Magnus Hagander's avatar
      Typo fix. · e467168e
      Magnus Hagander authored
      Erik Rijkers
      e467168e
    • Magnus Hagander's avatar
      pgcrypto doc updates · 98bb697f
      Magnus Hagander authored
      Marko Kreen
      98bb697f
  13. 16 Jan, 2008 4 commits
  14. 15 Jan, 2008 7 commits
  15. 14 Jan, 2008 1 commit
    • Bruce Momjian's avatar
      Add: · 1272ac82
      Bruce Momjian authored
      >
      > * Add the ability to automatically create materialized views
      >
      >   Right now materialized views require the user to create triggers on the
      >   main table to keep the summary table current.  SQL syntax should be able
      >   to manager the triggers and summary table automatically.  A more
      >   sophisticated implementation would automatically retrieve from the
      >   summary table when the main table is referenced, if possible.
      >
      1272ac82