1. 21 1月, 2008 2 次提交
  2. 20 1月, 2008 1 次提交
    • T
      Make pg_regress clean out the testtablespace directory only on Windows. · f10589e5
      Tom Lane 提交于
      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
  3. 18 1月, 2008 6 次提交
    • M
      · aeeef411
      Marc G. Fournier 提交于
      must commit after autoconf ... and yes, I used the right autoconf
      aeeef411
    • B
      7b4be2ba
    • T
      Insert into getCopyDataMessage() the same logic that already existed in the · 70066eb1
      Tom Lane 提交于
      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
    • T
      Fix subselect.c to avoid assuming that a SubLink's testexpr references each · a44174cf
      Tom Lane 提交于
      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
    • T
      Fix ALTER INDEX RENAME so that if the index belongs to a unique or primary key · 0df7717f
      Tom Lane 提交于
      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
    • B
      Update Japanese FAQ. · d07de6c4
      Bruce Momjian 提交于
      Jun Kuwamura
      d07de6c4
  4. 17 1月, 2008 5 次提交
  5. 16 1月, 2008 6 次提交
  6. 15 1月, 2008 7 次提交
  7. 14 1月, 2008 7 次提交
  8. 13 1月, 2008 3 次提交
  9. 12 1月, 2008 3 次提交
    • N
      Fix two places in xml.c that neglected to check the return values of · 52176633
      Neil Conway 提交于
      SPI_prepare() and SPI_cursor_open(), to silence a Coverity warning.
      52176633
    • N
      Minor perf tweak for _SPI_strdup(): if we're going to call strlen() · 25b7583f
      Neil Conway 提交于
      anyway, it is faster to memcpy() than to strcpy().
      25b7583f
    • T
      Fix logical errors in constraint exclusion: we cannot assume that a CHECK · 208d0a23
      Tom Lane 提交于
      constraint yields TRUE for every row of its table, only that it does not
      yield FALSE (a NULL result isn't disallowed).  This breaks a couple of
      implications that would be true in two-valued logic.  I had put in one such
      mistake in an 8.2.5 patch: foo IS NULL doesn't refute a strict operator
      on foo.  But there was another in the original 8.2 release: NOT foo doesn't
      refute an expression whose truth would imply the truth of foo.
      Per report from Rajesh Kumar Mallah.
      
      To preserve the ability to do constraint exclusion with one partition
      holding NULL values, extend relation_excluded_by_constraints() to check
      for attnotnull flags, and add col IS NOT NULL expressions to the set of
      constraints we hope to refute.
      208d0a23