1. 25 Sep, 2007 3 commits
    • Tom Lane's avatar
      Dept. of second thoughts: fix loop in BgBufferSync so that the exit when · 7a315a09
      Tom Lane authored
      bgwriter_lru_maxpages is exceeded leaves the loop variables in the
      expected state.  In the original coding, we'd fail to advance
      next_to_clean, causing that buffer to be probably-uselessly rechecked next
      time, and also have an off-by-one idea of the number of buffers scanned.
      7a315a09
    • Tom Lane's avatar
      Just-in-time background writing strategy. This code avoids re-scanning · 6f5c38dc
      Tom Lane authored
      buffers that cannot possibly need to be cleaned, and estimates how many
      buffers it should try to clean based on moving averages of recent allocation
      requests and density of reusable buffers.  The patch also adds a couple
      more columns to pg_stat_bgwriter to help measure the effectiveness of the
      bgwriter.
      
      Greg Smith, building on his own work and ideas from several other people,
      in particular a much older patch from Itagaki Takahiro.
      6f5c38dc
    • Peter Eisentraut's avatar
      Small string tweaks · 588901df
      Peter Eisentraut authored
      588901df
  2. 24 Sep, 2007 8 commits
  3. 23 Sep, 2007 8 commits
  4. 22 Sep, 2007 10 commits
  5. 21 Sep, 2007 8 commits
  6. 20 Sep, 2007 3 commits