1. 23 8月, 2007 5 次提交
  2. 22 8月, 2007 12 次提交
  3. 21 8月, 2007 13 次提交
  4. 20 8月, 2007 1 次提交
  5. 19 8月, 2007 3 次提交
  6. 17 8月, 2007 1 次提交
  7. 16 8月, 2007 2 次提交
    • T
      Arrange to cache a ResultRelInfo in the executor's EState for relations that · 817946bb
      Tom Lane 提交于
      are not one of the query's defined result relations, but nonetheless have
      triggers fired against them while the query is active.  This was formerly
      impossible but can now occur because of my recent patch to fix the firing
      order for RI triggers.  Caching a ResultRelInfo avoids duplicating work by
      repeatedly opening and closing the same relation, and also allows EXPLAIN
      ANALYZE to "see" and report on these extra triggers.  Use the same mechanism
      to cache open relations when firing deferred triggers at transaction shutdown;
      this replaces the former one-element-cache strategy used in that case, and
      should improve performance a bit when there are deferred triggers on a number
      of relations.
      817946bb
    • T
      Repair problems occurring when multiple RI updates have to be done to the same · 9cb84097
      Tom Lane 提交于
      row within one query: we were firing check triggers before all the updates
      were done, leading to bogus failures.  Fix by making the triggers queued by
      an RI update go at the end of the outer query's trigger event list, thereby
      effectively making the processing "breadth-first".  This was indeed how it
      worked pre-8.0, so the bug does not occur in the 7.x branches.
      Per report from Pavel Stehule.
      9cb84097
  8. 15 8月, 2007 3 次提交
    • B
      Add third idea about pulling data from indexes. · 5ff95e6b
      Bruce Momjian 提交于
      >   A third idea would be for a heap scan to check if all rows are visible
      >   and if so set a per-table flag which can be checked by index scans.
      >   Any change to the table would have to clear the flag.  To detect
      >   changes during the heap scan a counter could be set at the start and
      >   checked at the end --- if it is the same, the table has not been
      >   modified --- any table change would increment the counter.
      5ff95e6b
    • B
      Fix whitespace in TODO. · 811f91cf
      Bruce Momjian 提交于
      811f91cf
    • T
      Fix oversight in async-commit patch: there were some places in heapam.c · 67f99d21
      Tom Lane 提交于
      that still thought they could set HEAP_XMAX_COMMITTED immediately after
      seeing the other transaction commit.  Make them use the same logic as
      tqual.c does to determine if the hint bit can be set yet.
      67f99d21