1. 23 Aug, 2007 3 commits
  2. 22 Aug, 2007 11 commits
  3. 21 Aug, 2007 16 commits
  4. 20 Aug, 2007 1 commit
  5. 19 Aug, 2007 3 commits
  6. 16 Aug, 2007 1 commit
  7. 15 Aug, 2007 4 commits
    • Tom Lane's avatar
      Arrange to cache a ResultRelInfo in the executor's EState for relations that · 817946bb
      Tom Lane authored
      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
    • Tom Lane's avatar
      Repair problems occurring when multiple RI updates have to be done to the same · 9cb84097
      Tom Lane authored
      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
    • Bruce Momjian's avatar
      Add third idea about pulling data from indexes. · 5ff95e6b
      Bruce Momjian authored
      >   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
    • Bruce Momjian's avatar
      Fix whitespace in TODO. · 811f91cf
      Bruce Momjian authored
      811f91cf
  8. 14 Aug, 2007 1 commit